Hi there. We were building a search list for our job postings and ran into a weird problem.
We've got a document with field "name" containing one word "Frezer". Type text and analyzed with custom analyzer.
The thing is that for simple query string query
"query": { "simple_query_string" : { "query": "fre*", "fields": ["name"], "default_operator": "and" } }
we get correct result but when we change query to "freze*" it disappears, same for "frez*".
"Frezer" works well.
Our analyzer uses icu_tokenizer and ascii-folding with preserve original.
Uppercase and lowercase letters don't do the trick.
Any ideas why it fails, and why exacly with those two letters?
@Edit1 : Exact same thing happens with match_phrase_prefix query.