Hi,
we are using Kibana 5.4.1 (and so ES) and we need to search over all fields without the _all field in Kibana Discover.
As solution we thought that we could set the Kibana option: "query:queryString:options" to
{ "analyze_wildcard": true,
"all_fields" : true,
"lenient": true,
"default_operator": "and" }
This search configuration works well (e.g. search for a simple string consisting of multiple words like My Company 1) and has the correct search results. Unfortunately, the "all_fields" is deprecated as of 6.0.0, and we want to be future-proof.
https://www.elastic.co/guide/en/elasticsearch/reference/6.x/query-dsl-query-string-query.html
Therefore, we used instead of "all_fields" the property "default_field", as suggested by the documentation above, like this:
{ "analyze_wildcard": true,
"default_field": "*",
"lenient": true,
"default_operator": "and" }
The query (excerpt) that Kibana is sending (al_fields is automatically added and set to false):
{ "query_string": {
"all_fields":false,
"analyze_wildcard":true,
"default_field":"*",
"default_operator":"and",
"lenient":true,
"query":"My Company 1"}
}
Unfortunately, the search result is completely different. It finds nearly every entity in our database (like searching for everything) instead of a sub set.
So, is there a solution to this search so we are compatibile with the 6.0 version? Or do we need to change from "all_fields" to "default_field" only if using Kibana/ES 6.0 ?
Thanks
Christian Wimmer