Hi everyone, I am a newbie in Elasticseach and am trying out stuff in order to gain more knowledge.
I need help converting the below line of code written in Elasticseach 7.x to 8.x standard.
any pointers to resources that explicitly break it down would be appreciated.
if (fields.size() > 1) {
final MultiMatchQueryBuilder queryBuilder = QueryBuilders.multiMatchQuery(dto.getSearchTerm())
.type(MultiMatchQueryBuilder.Type.CROSS_FIELDS)
.operator(Operator.AND);
fields.forEach(queryBuilder::field);
return queryBuilder;
}