I am having issues with this query.
The idea is that I want to find all docs that have vaccin OR drva* OR wellness in any of the fields "description","code","profitcenter","itemcategory" The below is what I have and it seems to work partially. In Kibana as a filter it will work but for some reason only on one of the index's I have 2 indexes and between the 2 they do share some of the same field names.
{
"query": {
"query_string": {
"analyze_wildcard": true,
"fields": [
"description",
"code",
"profitcenter",
"itemcategory"
],
"query": " vaccin* OR drva* OR wellness*",
"use_dis_max": true
}
}
}