Radu,
Thansk for your help.
I got a project with 1000 geo points (lat and long) and i want to find the
neart point from the user location.
I'm really lost, because the tutorials in elasticsearch don't give much
real examples... just code snapshoot's... so i don't know how to import
elasticsearch to my project, and how to use it.
I've already been in touch with Compass when i reed the Grails in Action
book... i did a fullsearch, with highlight, pagination, autocomplete (ajax)
and word suggestion... all by example, but know compass is dead and elastic
took place... but there is no real examples, or step by step.
My search it's really simple, just locate the nearst guy from the user
location, but i don't know how to start.
Elasticsearch have a plugin for Grails but it's out of date, and i'm not
lookin to work with a old versions of elastic.
For some real examples, should i start with the videos???
2012/6/28 Radu Gheorghe radu0gheorghe@gmail.com
Hi,
On Wednesday, June 27, 2012 4:58:31 PM UTC+3, dertyu765 wrote:
Ok,
But where should i start?
I suppose that depends on what you already know and how you prefer to
learn. I know you said you're a newbie, but that can mean a lot of things.
I can only tell you that I've started by looking at a few videos:
Elasticsearch Platform — Find real-time answers at scale | Elastic
Then I've also looked at the Elasticsearch homepage and the page that's on
Wikipedia. Then, the basic stuff from the guide became clear, then the more
complex ones.
So you can try the same path and see if it's useful for you.
You might also find this site interesting:
http://www.elasticsearchtutorial.com/index.html
I'm doing a Grails project... i looked for the ElasticPlugin for Grails,
but is out of date, and i want to work with the last release.
I can't help you much here because I never worked with Grails. But
Elasticsearch has a REST inteface, which basically means that you can just
send HTTP requests and work with the results. In pretty much any language.
Some languages have nice little clients that handle some of the HTTP stuff
for you, but I don't think it's a show-stopper if you don't have that.
Should i read the full lucene in action book?
I haven't read the book, so I can't really say. I guess it's good to know
about how Lucene works if you really want to take advantage of the full
capabilities of Elasticsearch, but if you want to build a simple search
app, I don't think it's a requirement.
The Elasticsearch website has tutorials, but they are not for newbies....
there's any book for it?
Not that I'm aware of.
How can i implement it to my project
I think it's best to take one question at a time. Is there a specific
thing that you have trouble implementing? Or is it the general
"architecture" of the app?
2012/6/27 Radu Gheorghe
You can begin by searching for Daniel with a term query:
Elasticsearch Platform — Find real-time answers at scale | Elastic**
term-query.htmlhttp://www.elasticsearch.org/guide/reference/query-dsl/term-query.html
Once you find Daniel, I think you can sort for certain fields:
Elasticsearch Platform — Find real-time answers at scale | Elastichttp://www.elasticsearch.org/guide/reference/api/search/sort.html
You have there a section on Geo Distance sorting as well.
On Tuesday, June 26, 2012 11:13:00 PM UTC+3, dertyu765 wrote:
Hello guys,
I need some help with a simple system wich i'm developing.
Its a basic program in wich i register my employees in the db (name,
sex, address, rank) for some easy search.
The problem is i'm a newbi in searching (Java and Groovy and Grails
developer) and i don't know where to point my effort to study.
I need to look for employees in the system focusing first in his/her
address and rank, than i want to find the person itself....
For example, i want to search for a emplooy named Daniel, so i wanna
find the Daniel wich is nearst to me, and is the best ranked.
So here goes my question, do i have to learn Lucene from 0 to build my
own app? can Elasticsearch do this kind of work? if yes, wich is the
best book or tutorial for doing such thing?
If both questions are negativa, how can i build such search???