Is it possible to perform a Terms Query on multiple fields in ElasticSearch Java API Client 8.11?

I am trying to build a terms query to return documents with the matching terms.

However, according to documentation it seems a field must be specified with the terms query.

Is there any way to do a terms query on all fields without specifying any?

I have tried building a multi match query, but that does not allow multiple terms.

  • Please provide enough code so others can better understand or reproduce the problem.

    – 

Leave a Comment