# How to perform full text search with modifiers in Elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-perform-full-text-search-with-modifiers-in-elasticsearch/10970>\
**Category:** Elasticsearch\
**Created:** [March 1, 2013, 6:25pm UTC](https://discuss.elastic.co/t/how-to-perform-full-text-search-with-modifiers-in-elasticsearch/10970 "2013-03-01T18:25:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hd\_online](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hd_online/32/2457_2.png) [@hd\_online](https://discuss.elastic.co/u/hd_online)\
**Post date:** [March 1, 2013, 6:25pm UTC](https://discuss.elastic.co/t/how-to-perform-full-text-search-with-modifiers-in-elasticsearch/10970/1 "2013-03-01T18:25:07Z")

</div>

I am building a web application using Elasticsearch with  
Playframework[Java] with full text search option. I want to process  
something like "Sony Ericsson phones _under_ 300 dollars" or "Samsung  
phones \*with \*3g". As I am new to Lucene/Elasticsearch, wanted to know what  
is the best way to go about it.

Do I need to parse terms like "above, below, with" etc in my code and then  
generate relevant queries for Elasticsearch or there is a better/standard  
way to do this? And I want to add that it doesn't need to be perfect. Any  
help?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Justin\_Treher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/justin_treher/32/45243_2.png) [@Justin\_Treher](https://discuss.elastic.co/u/Justin_Treher)\
**Post date:** [March 1, 2013, 6:44pm UTC](https://discuss.elastic.co/t/how-to-perform-full-text-search-with-modifiers-in-elasticsearch/10970/2 "2013-03-01T18:44:26Z")

</div>

As far as I know, you are going to need to parse out the natural text  
yourself in your application and present a valid query representing the  
user's intent.

So, you can have some software that will look for keywords and translate  
them into commands. You are getting into natural language processing at  
that point, which is a whole other fun field of study than information  
retrieval.

On Friday, March 1, 2013 1:25:07 PM UTC-5, hd\_online wrote:

> I am building a web application using Elasticsearch with  
> Playframework[Java] with full text search option. I want to process  
> something like "Sony Ericsson phones _under_ 300 dollars" or "Samsung  
> phones \*with \*3g". As I am new to Lucene/Elasticsearch, wanted to know  
> what is the best way to go about it.
> 
> Do I need to parse terms like "above, below, with" etc in my code and then  
> generate relevant queries for Elasticsearch or there is a better/standard  
> way to do this? And I want to add that it doesn't need to be perfect. Any  
> help?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![hd\_online](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hd_online/32/2457_2.png) [@hd\_online](https://discuss.elastic.co/u/hd_online)\
**Post date:** [March 5, 2013, 7:57am UTC](https://discuss.elastic.co/t/how-to-perform-full-text-search-with-modifiers-in-elasticsearch/10970/3 "2013-03-05T07:57:52Z")

</div>

Thanks for your response. You mean that I could be using tools like  
Stanford NLP , Gate etc? But since I would have a small domain, I guess it  
would be simpler for me to parse them manually. What say?

On Saturday, March 2, 2013 12:14:26 AM UTC+5:30, [jtr...@gmail.com](mailto:jtr...@gmail.com) wrote:

> As far as I know, you are going to need to parse out the natural text  
> yourself in your application and present a valid query representing the  
> user's intent.
> 
> So, you can have some software that will look for keywords and translate  
> them into commands. You are getting into natural language processing at  
> that point, which is a whole other fun field of study than information  
> retrieval.
> 
> On Friday, March 1, 2013 1:25:07 PM UTC-5, hd\_online wrote:
> 
> > I am building a web application using Elasticsearch with  
> > Playframework[Java] with full text search option. I want to process  
> > something like "Sony Ericsson phones _under_ 300 dollars" or "Samsung  
> > phones \*with \*3g". As I am new to Lucene/Elasticsearch, wanted to know  
> > what is the best way to go about it.
> > 
> > Do I need to parse terms like "above, below, with" etc in my code and  
> > then generate relevant queries for Elasticsearch or there is a  
> > better/standard way to do this? And I want to add that it doesn't need to  
> > be perfect. Any help?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:48am UTC](https://discuss.elastic.co/t/how-to-perform-full-text-search-with-modifiers-in-elasticsearch/10970/4 "2017-07-06T02:48:22Z")

</div>


