How to combine exact search and wildcard in elasticsearch simple_query_string

I tried:

GET /_search
{
  "query": {
    "simple_query_string" : {
        "query": "\"sometext*\"",
        "fields": ["name"],
        "default_operator": "and",
        "quote_field_suffix": '.raw',
        "analyze_wildcard": true
    }
  }
}

but the search result is incorrect.

for example, there is an index:

1. prefixsometext
2. sometextone
3. sometexttwo

I need to find only 2 and 3 when querying "sometext*"

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