What is the meaning of query_string with 1~ or ~AUTO?

I read the documentation of
(Query string query | Elasticsearch Guide [8.1] | Elastic)
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:

    1.1 what it the meaning of the number before ~ ? (1~, 0~, 2~)...?

    1.2 if the index contains: Central or cntrl or center or Central, does the query finds this results with "1~central"?

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

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