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"]
}}]
}}}
-
In the first
query_string
:
I'm not sure I understand what is the meaning of1~
?
I read aboutDamerau–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
orcntrl
orcenter
orCentral
, does the query finds this results with "1~central"? -
In the second
query_string
what is the meaing of AUTO ? (park~AUTO)