We performed a rolling upgrade from Elasticsearch 5.6.7 to 6.5.0 (following the instructions reported on this page), without re-indexing any existing index.
After this upgrade, when you execute a search using a query string query with wildcards on any upgraded index, the results are incorrect:
- A question mark wildcard always returns all the documents;
- A star wildcard returns all the documents unless it is post-fixed.
For example, searching for serv?r or ?erver or serve? returns all the documents of the index; searching for serv*r or *erver returns again all the documents of the index.
Is this a known bug of Elasticsearch 6.5?
What are the possible workarounds for this issue? Re-indexing all the indices?