public class QueryStringSpecFieldNested extends QuerySpec
new QueryStringSpecField() .setTerm("searchField", "searchTerm", "AND", "NestedObjectName", "idOfMatchedNestedObject") .setIndex("bar") .setType("FooBarDTO") .setPageSize(10) .setStartRecord(0) .setExplain(false);See also:
Constructor and Description |
---|
QueryStringSpecFieldNested() |
Modifier and Type | Method and Description |
---|---|
QueryStringSpecFieldNested |
setTerm(String field,
Object value,
String operator,
String path,
String docvalueFields)
A convenience method to set the term of this query.
|
excludeResults, includeAllSources, setAggregate, setAggregateSize, setCountOnly, setExplain, setIndex, setPageSize, setQuerySort, setScroll, setStartRecord, setType
public QueryStringSpecFieldNested setTerm(String field, Object value, String operator, String path, String docvalueFields)
field
- The field name to search against.value
- The value to search.operator
- The field to execute the search against.path
- The nested objectdocvalueFields
- The Object name of the inner search resultsQueryStringSpecFieldNested
objectCopyright © 2019. All rights reserved.