I have updated my ElasticSearch 5.x to 6.x, and the discovery Search have not the same result. In 5.x, i have 500 results when searching in my index, and 9 results in 6.x.
Can someone explain me the new research method of 6.X ES, and the difference between 5.X and 6.X.
I have read many documents, but i can't find the answer.
Elasticsearch 5.x had an _all field that was enabled by default, which allowed case-insensitive free-text search. This could take up a lot of space on disk and was in Elasticsearch 6.x removed and replaced by an all_fields option for the query string, which Kibana falls back on when no fields are specified in the search bar. This instead queries all fields, and since most of your fields are mapped as keyword(case sensitive) the search behaviour is now different.
If you want the old behaviour and do not mind indices taking upon more space on disk, you can create your own _all field equivalent using the copy_to functionality.
You should look at the _analyze API. It will basically help you to understand how your text is processed before getting indexed.
I don't think so.
If you need help on that, please share what you are exactly doing. I mean a simple example with the real mapping and real document and query would help.
A full recreation script as described in About the Elasticsearch category would help. Please, try to keep the example as simple as possible.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.