Wildcard phrases with slop using string query

Is this kind of query still not supported.

This won't work.

"query_string": {
"fields": [
"nickname"
],
"query": "content:\"hello\" AND \"Rodan Fields?\"",
"default_operator": "AND"
}

Writing "slop" like this won't work

"query_string": {
"fields": [
"nickname"
],
"query": "content:\"hello\" AND Rodan Fields?~2",
"default_operator": "AND"
}

There is a query syntax and parser that can help but there has been a conscious decision to keep it out of elasticsearch for performance reasons (plugin) feature request: Add support for ComplexPhraseQueryParser · Issue #3875 · elastic/elasticsearch · GitHub

1 Like