# Simple search app, newbi on the spot

**URL:** <https://discuss.elastic.co/t/simple-search-app-newbi-on-the-spot/8231>\
**Category:** Elasticsearch\
**Created:** [June 26, 2012, 8:13pm UTC](https://discuss.elastic.co/t/simple-search-app-newbi-on-the-spot/8231 "2012-06-26T20:13:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Marchena\_Parr](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Daniel\_Marchena\_Parr](https://discuss.elastic.co/u/Daniel_Marchena_Parr)\
**Post date:** [June 26, 2012, 8:13pm UTC](https://discuss.elastic.co/t/simple-search-app-newbi-on-the-spot/8231/1 "2012-06-26T20:13:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Radu\_Gheorghe1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe1/32/2688_2.png) [@Radu\_Gheorghe1](https://discuss.elastic.co/u/Radu_Gheorghe1)\
**Post date:** [June 27, 2012, 7:09am UTC](https://discuss.elastic.co/t/simple-search-app-newbi-on-the-spot/8231/2 "2012-06-27T07:09:56Z")

</div>

You can begin by searching for Daniel with a term query:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Once you find Daniel, I think you can sort for certain fields:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

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

---

<div class="post-metadata">

**Author:** ![Daniel\_Marchena\_Parr](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Daniel\_Marchena\_Parr](https://discuss.elastic.co/u/Daniel_Marchena_Parr)\
**Post date:** [June 27, 2012, 1:58pm UTC](https://discuss.elastic.co/t/simple-search-app-newbi-on-the-spot/8231/3 "2012-06-27T13:58:31Z")

</div>

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](mailto:radu0gheorghe@gmail.com)

> You can begin by searching for Daniel with a term query:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://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 | Elastic](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???

---

<div class="post-metadata">

**Author:** ![Radu\_Gheorghe1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe1/32/2688_2.png) [@Radu\_Gheorghe1](https://discuss.elastic.co/u/Radu_Gheorghe1)\
**Post date:** [June 28, 2012, 6:41am UTC](https://discuss.elastic.co/t/simple-search-app-newbi-on-the-spot/8231/4 "2012-06-28T06:41:06Z")

</div>

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](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

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](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](http://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 | Elastic](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???

---

<div class="post-metadata">

**Author:** ![Daniel\_Marchena\_Parr](https://avatars.discourse-cdn.com/v4/letter/d/b5ac83/32.png) [@Daniel\_Marchena\_Parr](https://discuss.elastic.co/u/Daniel_Marchena_Parr)\
**Post date:** [June 28, 2012, 1:02pm UTC](https://discuss.elastic.co/t/simple-search-app-newbi-on-the-spot/8231/5 "2012-06-28T13:02:23Z")

</div>

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](mailto: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](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](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](http://www.elasticsearch.org/**guide/reference/query-dsl/)\*\*  
> > > term-query.html[http://www.elasticsearch.org/guide/reference/query-dsl/term-query.html](http://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 | Elastic](http://www.elasticsearch.org/ **guide/reference/api/search/** sort.html)[http://www.elasticsearch.org/guide/reference/api/search/sort.html](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???

---

<div class="post-metadata">

**Author:** ![Radu\_Gheorghe1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe1/32/2688_2.png) [@Radu\_Gheorghe1](https://discuss.elastic.co/u/Radu_Gheorghe1)\
**Post date:** [June 29, 2012, 7:29am UTC](https://discuss.elastic.co/t/simple-search-app-newbi-on-the-spot/8231/6 "2012-06-29T07:29:56Z")

</div>

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:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](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](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](http://www.elasticsearch.org/**guide/reference/query-dsl/)\*\*  
> > > > term-query.html[http://www.elasticsearch.org/guide/reference/query-dsl/term-query.html](http://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 | Elastic](http://www.elasticsearch.org/ **guide/reference/api/search/** sort.html)[http://www.elasticsearch.org/guide/reference/api/search/sort.html](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???

---

<div class="post-metadata">

**Author:** ![Radu\_Gheorghe1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radu_gheorghe1/32/2688_2.png) [@Radu\_Gheorghe1](https://discuss.elastic.co/u/Radu_Gheorghe1)\
**Post date:** [June 29, 2012, 8:10am UTC](https://discuss.elastic.co/t/simple-search-app-newbi-on-the-spot/8231/7 "2012-06-29T08:10:38Z")

</div>

I found this interesting. What do you think?  
[http://grails.org/doc/latest/guide/webServices.html#13.1%20REST](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:  
> > > [Elasticsearch Platform — Find real-time answers at scale | Elastic](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](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](http://www.elasticsearch.org/**guide/reference/query-dsl/)\*\*  
> > > > > term-query.html[http://www.elasticsearch.org/guide/reference/query-dsl/term-query.html](http://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 | Elastic](http://www.elasticsearch.org/ **guide/reference/api/search/** sort.html)[http://www.elasticsearch.org/guide/reference/api/search/sort.html](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???

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:22am UTC](https://discuss.elastic.co/t/simple-search-app-newbi-on-the-spot/8231/8 "2017-07-06T03:22:04Z")

</div>


