q.bool(b -> b .must(c-> c .match(t -> t .field("FIELD NAME").query(searchText) )) I need to pass String Array " /> q.bool(b -> b .must(c-> c .match(t -> t .field("FIELD NAME").query(searchText) )) I need to pass String Array " /> q.bool(b -> b .must(c-> c .match(t -> t .field("FIELD NAME").query(searchText) )) I need to pass String Array "/>

Elasticsearch Java Client create query for field with list of values

449 Views Asked by At
String searchText = "TEST";

.query(q -> q.bool(b -> b .must(c-> c .match(t -> t .field("FIELD NAME").query(searchText) ))

I need to pass String Array to query. Whats the best way I can do it.

0

There are 0 best solutions below