# Query\_string supported features

**URL:** <https://discuss.elastic.co/t/query-string-supported-features/8110>\
**Category:** Elasticsearch\
**Created:** [June 14, 2012, 9:26pm UTC](https://discuss.elastic.co/t/query-string-supported-features/8110 "2012-06-14T21:26:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcoder](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@bcoder](https://discuss.elastic.co/u/bcoder)\
**Post date:** [June 14, 2012, 9:26pm UTC](https://discuss.elastic.co/t/query-string-supported-features/8110/1 "2012-06-14T21:26:34Z")

</div>

Does query\_string ([http://www.elasticsearch.org/guide/reference/query-](http://www.elasticsearch.org/guide/reference/query-)  
dsl/query-string-query.html) support all lucene features (http://  
[lucene.apache.org/core/old\_versioned\_docs/versions/3\_0\_0/](http://lucene.apache.org/core/old_versioned_docs/versions/3_0_0/)  
queryparsersyntax.html), like: proximity searching, boosting a term,  
boolean operators, grouping, field searching, etc ? Is there a way to  
disable/enable some of these (I see for wildcard there is, but do not  
see for any other feature)

Thanks!

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 14, 2012, 9:28pm UTC](https://discuss.elastic.co/t/query-string-supported-features/8110/2 "2012-06-14T21:28:13Z")

</div>

Yes, it uses the same parser, with some extensions (like automatically  
using the relevant analyzer for a specific field, supporting multiple  
fields).

On Thu, Jun 14, 2012 at 11:26 PM, bcoder [blitzkriegcoder@gmail.com](mailto:blitzkriegcoder@gmail.com) wrote:

> Does query\_string ([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-)  
> dsl/query-string-query.html) support all lucene features (http://  
> [Lucene Java Documentation](http://lucene.apache.org/core/old_versioned_docs/versions/3_0_0/)  
> queryparsersyntax.html), like: proximity searching, boosting a term,  
> boolean operators, grouping, field searching, etc ? Is there a way to  
> disable/enable some of these (I see for wildcard there is, but do not  
> see for any other feature)
> 
> Thanks!

---

<div class="post-metadata">

**Author:** ![bcoder](https://avatars.discourse-cdn.com/v4/letter/b/3e96dc/32.png) [@bcoder](https://discuss.elastic.co/u/bcoder)\
**Post date:** [June 15, 2012, 6:49pm UTC](https://discuss.elastic.co/t/query-string-supported-features/8110/3 "2012-06-15T18:49:06Z")

</div>

Thanks! I have 2 related follow-up questions:

1. I am unable to search for query string's with two question mark  
( ? ) wildcard character together. For ex: "h?l?o" works fine, but  
"he??o" fails to work (ES returns HTTP 500).

2. Is there some place where I can find exact format for valid query  
string's so that I can parse it on front-end, and user cannot enter  
invalid strings, like for example these query\_string's fail (ES  
returns HTTP 500): "hello AND", "hello +", "hello OR", "hello~~",  
"hello~1.0", "hel??o", "hello:", etc ... Failure of most of these make  
sense, but is there a proper query string language defined, so that I  
can verify user input with confidence ?

Thanks!

On Jun 14, 2:28 pm, Shay Banon [kim...@gmail.com](mailto:kim...@gmail.com) wrote:

> Yes, it uses the same parser, with some extensions (like automatically  
> using the relevant analyzer for a specific field, supporting multiple  
> fields).
> 
> On Thu, Jun 14, 2012 at 11:26 PM, bcoder [blitzkriegco...@gmail.com](mailto:blitzkriegco...@gmail.com) wrote:
> 
> > Does query\_string ([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-)  
> > dsl/query-string-query.html) support all lucene features (http://  
> > [Lucene Java Documentation](http://lucene.apache.org/core/old_versioned_docs/versions/3_0_0/)  
> > queryparsersyntax.html), like: proximity searching, boosting a term,  
> > boolean operators, grouping, field searching, etc ? Is there a way to  
> > disable/enable some of these (I see for wildcard there is, but do not  
> > see for any other feature)
> 
> > Thanks!

---

<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:23am UTC](https://discuss.elastic.co/t/query-string-supported-features/8110/4 "2017-07-06T03:23:49Z")

</div>


