# What is the meaning of query\_string with 1~ or ~AUTO?

**URL:** <https://discuss.elastic.co/t/what-is-the-meaning-of-query-string-with-1-or-auto/300128>\
**Category:** Elasticsearch\
**Created:** [March 20, 2022, 12:58pm UTC](https://discuss.elastic.co/t/what-is-the-meaning-of-query-string-with-1-or-auto/300128 "2022-03-20T12:58:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asil/32/97607_2.png) [@asil](https://discuss.elastic.co/u/asil)\
**Post date:** [March 20, 2022, 12:58pm UTC](https://discuss.elastic.co/t/what-is-the-meaning-of-query-string-with-1-or-auto/300128/1 "2022-03-20T12:58:18Z")

</div>

I read the documentation of  
([Query string query | Elasticsearch Guide [8.1] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html))  
and still don't understand the following example:

```
GET /_search
{
  "query": {
    "bool": {
        "must": [{
                  "query_string": {
                      "query": "1~central OR 0~park",
                      "default_field": "content"
                   }},                
                 {"query_string": {
                      "query": "park~AUTO",
                      "quote_field_suffix": ".exact", 
                      "fields": ["content"]
                    }}]
             
}}}

```

1. In the first `query_string`:  
I'm not sure I understand what is the meaning of `1~` ?  
I read about `Damerau–Levenshtein distance`, and still not sure I understand it correcly:

2. In the second `query_string`  
what is the meaing of AUTO ? (park~AUTO)

---

<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:** [April 17, 2022, 12:58pm UTC](https://discuss.elastic.co/t/what-is-the-meaning-of-query-string-with-1-or-auto/300128/2 "2022-04-17T12:58:45Z")

</div>

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