# Operations supported in query\_string

**URL:** <https://discuss.elastic.co/t/operations-supported-in-query-string/11920>\
**Category:** Elasticsearch\
**Created:** [May 11, 2013, 6:30am UTC](https://discuss.elastic.co/t/operations-supported-in-query-string/11920 "2013-05-11T06:30:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ban\_Mido](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Ban\_Mido](https://discuss.elastic.co/u/Ban_Mido)\
**Post date:** [May 11, 2013, 6:30am UTC](https://discuss.elastic.co/t/operations-supported-in-query-string/11920/1 "2013-05-11T06:30:14Z")

</div>

Hi ,

Only recently i found the full power of query\_string.  
I found that we can search on multi fields using the query\_string.  
Like

Content:(world is beutiful) AND Occurance:2 AND Content:(pluto)

Here i would like to know if i can use the "more than" or "less than"  
operators to compare numberic values.

I am also excited in knowing what other operations query\_string supports.

Thanks  
Vineeth

--  
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:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 11, 2013, 7:44am UTC](https://discuss.elastic.co/t/operations-supported-in-query-string/11920/2 "2013-05-11T07:44:28Z")

</div>

Yes you can.  
mod\_date:[20020101 TO \*]

See [http://lucene.apache.org/core/4\_3\_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Query\_Parser\_Syntax](http://lucene.apache.org/core/4_3_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Query_Parser_Syntax)

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 11 mai 2013 à 08:30, Ban Mido [banmidobeyondtime@gmail.com](mailto:banmidobeyondtime@gmail.com) a écrit :

Hi ,

Only recently i found the full power of query\_string.  
I found that we can search on multi fields using the query\_string.  
Like

Content:(world is beutiful) AND Occurance:2 AND Content:(pluto)

Here i would like to know if i can use the "more than" or "less than" operators to compare numberic values.

I am also excited in knowing what other operations query\_string supports.

## Thanks Vineeth

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).

--  
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:** ![Ban\_Mido](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@Ban\_Mido](https://discuss.elastic.co/u/Ban_Mido)\
**Post date:** [May 11, 2013, 2:40pm UTC](https://discuss.elastic.co/t/operations-supported-in-query-string/11920/3 "2013-05-11T14:40:01Z")

</div>

Thanks Man ,

That helped a lot.

~Mido

On Sat, May 11, 2013 at 1:14 PM, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> Yes you can.
> 
> mod\_date:[20020101 TO \*]
> 
> See  
> [org.apache.lucene.queryparser.classic (Lucene 4.3.0 API)](http://lucene.apache.org/core/4_3_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Query_Parser_Syntax)
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 11 mai 2013 à 08:30, Ban Mido [banmidobeyondtime@gmail.com](mailto:banmidobeyondtime@gmail.com) a écrit :
> 
> Hi ,
> 
> Only recently i found the full power of query\_string.  
> I found that we can search on multi fields using the query\_string.  
> Like
> 
> Content:(world is beutiful) AND Occurance:2 AND Content:(pluto)
> 
> Here i would like to know if i can use the "more than" or "less than"  
> operators to compare numberic values.
> 
> I am also excited in knowing what other operations query\_string supports.
> 
> Thanks  
> Vineeth
> 
> --  
> 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).
> 
> --  
> 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).

--  
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:37am UTC](https://discuss.elastic.co/t/operations-supported-in-query-string/11920/4 "2017-07-06T02:37:04Z")

</div>


