public class QueryMultiMatch extends QuerySpec
QueryMatch
, a query performing a match against ES but on
multiple fields. Example:
new QueryMultiMatch() .setTerm("foo", "bar1Field", "bar2Field") .setIndex("foo") .setType("FooBarDTO") .setPageSize(10) .setStartRecord(0) .setExplain(false);See also:
Constructor and Description |
---|
QueryMultiMatch() |
Modifier and Type | Method and Description |
---|---|
QueryMultiMatch |
setTerm(Object value,
String... fields)
A convenience method to set the search term of this query.
|
exclude, excludeResults, include, includeAllSources, setAggregate, setAggregateSize, setCountOnly, setExplain, setHighlight, setIndex, setInnerHits, setPageSize, setQuerySort, setScroll, setStartRecord, setType
public QueryMultiMatch setTerm(Object value, String... fields)
value
- The value to search for.fields
- The list of fields to search against.QueryMultiMatch
objectCopyright © 2020. All rights reserved.