# In what types of queries is the query string syntax available and how can it be disabled?

**URL:** <https://discuss.elastic.co/t/in-what-types-of-queries-is-the-query-string-syntax-available-and-how-can-it-be-disabled/161769>\
**Category:** Elasticsearch\
**Created:** [December 21, 2018, 2:07am UTC](https://discuss.elastic.co/t/in-what-types-of-queries-is-the-query-string-syntax-available-and-how-can-it-be-disabled/161769 "2018-12-21T02:07:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anaym](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anaym/32/24897_2.png) [@anaym](https://discuss.elastic.co/u/anaym)\
**Post date:** [December 21, 2018, 2:07am UTC](https://discuss.elastic.co/t/in-what-types-of-queries-is-the-query-string-syntax-available-and-how-can-it-be-disabled/161769/1 "2018-12-21T02:07:03Z")

</div>

I need to disable the ability of the users to use [query string syntax](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-string-syntax) and [Lucene query parser syntax](https://lucene.apache.org/core/2_9_4/queryparsersyntax.html) in search queries. However, I am not sure that `query string syntax` and `lucene query parser syntax` are used only in [query string query](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#query-dsl-query-string-query).  
Maybe I can turn off syntax in the elastic index settings?

---

<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:** [January 18, 2019, 2:07am UTC](https://discuss.elastic.co/t/in-what-types-of-queries-is-the-query-string-syntax-available-and-how-can-it-be-disabled/161769/2 "2019-01-18T02:07:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
