Simple search app, newbi on the spot


(Daniel Marchena Parreira) #1

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???


(Radu Gheorghe) #2

You can begin by searching for Daniel with a term query:
http://www.elasticsearch.org/guide/reference/query-dsl/term-query.html

Once you find Daniel, I think you can sort for certain fields:
http://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???


(Daniel Marchena Parreira) #3

Ok,

But where should i start?

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.

Should i read the full lucene in action book?

The ElasticSearch website has tutorials, but they are not for newbies....
there's any book for it?

How can i implement it to my project

2012/6/27 Radu Gheorghe radu0gheorghe@gmail.com

You can begin by searching for Daniel with a term query:
http://www.elasticsearch.org/guide/reference/query-dsl/term-query.html

Once you find Daniel, I think you can sort for certain fields:
http://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???


(Radu Gheorghe) #4

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:
http://www.elasticsearch.org/videos/

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:
http://www.elasticsearch.org/guide/reference/query-dsl/term-query.html

Once you find Daniel, I think you can sort for certain fields:
http://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???


(Daniel Marchena Parreira) #5

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:
http://www.elasticsearch.org/videos/

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:
http://www.elasticsearch.org/guide/reference/query-dsl/
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:
http://www.elasticsearch.org/**guide/reference/api/search/**sort.htmlhttp://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???


(Radu Gheorghe) #6

The examples from tutorials are for you to use Elasticsearch's REST
interface via curl. It's the easiest way to have a proof-of-concept that
will work on anything that has curl installed (most Linuxes do, for
example).

In order to use it in your app, you need to "translate" these examples in
whatever you prefer to use in order to access this REST interface.
Unfortunately, I can't help you with that, since I have no experience with
Grails.

But you can have a look on how to make HTTP requests with Grails. And from
that point on, translating should be easy. Once you do one scenario, you
should be able to do most scenarios.

On Thursday, June 28, 2012 4:02:23 PM UTC+3, dertyu765 wrote:

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

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:
http://www.elasticsearch.org/videos/

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:
http://www.elasticsearch.org/guide/reference/query-dsl/
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:
http://www.elasticsearch.org/**guide/reference/api/search/**sort.htmlhttp://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???


(Radu Gheorghe) #7

I found this interesting. What do you think?
http://grails.org/doc/latest/guide/webServices.html#13.1%20REST

On Friday, June 29, 2012 10:29:56 AM UTC+3, Radu Gheorghe wrote:

The examples from tutorials are for you to use Elasticsearch's REST
interface via curl. It's the easiest way to have a proof-of-concept that
will work on anything that has curl installed (most Linuxes do, for
example).

In order to use it in your app, you need to "translate" these examples in
whatever you prefer to use in order to access this REST interface.
Unfortunately, I can't help you with that, since I have no experience with
Grails.

But you can have a look on how to make HTTP requests with Grails. And from
that point on, translating should be easy. Once you do one scenario, you
should be able to do most scenarios.

On Thursday, June 28, 2012 4:02:23 PM UTC+3, dertyu765 wrote:

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

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:
http://www.elasticsearch.org/videos/

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:
http://www.elasticsearch.org/guide/reference/query-dsl/
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:
http://www.elasticsearch.org/**guide/reference/api/search/**sort.htmlhttp://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???


(system) #8