I posted the same in stackoverflow but did not get any reply. Just posting the same here in case someone has any suggestions.
As mentioned in the doc, from elasticsearch 6.x
_all has been deprecated. I have a
matchQuery like below
QueryBuilders.boolQuery() .should(QueryBuilders.matchQuery("_all", typeAndName.name)) .should(buildMatchQuery( SearchFields.kObjectNameKey, dataModel.getLowerFieldName(PropertyType.STRING, SearchFields.kObjectNameKey), typeAndName.name));
Can someone suggest what is the recommended way of doing the same now?
In my case, I don't know beforehand what all fields can be there in the index so I cannot use
copy_to in index mapping to copy all fields data to some other field to simulate all.