If you want to use a list of values, I believe you should use Terms Query.
Below is my suggestion:
var array = new ArrayList<FieldValue>();
array.add(FieldValue.of("news"));
array.add(FieldValue.of("old"));
var termsQuery = TermsQuery.of(ts -> ts
.field("field")
.terms(TermsQueryField.of(t -> t.value(array))));
var searchRequest = SearchRequest.of(sr -> sr
.query(termsQuery._toQuery())
.index("idx_test"));
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.