public class ElasticQuery.InnerHitsBuilder extends Object
Note that there is no build() method, as the constructor already applies the object to the query.
Modifier | Constructor and Description |
---|---|
protected |
InnerHitsBuilder(String name,
int size) |
Modifier and Type | Method and Description |
---|---|
ElasticQuery.InnerHitsBuilder |
orderByAsc(String field)
Adds a sort criteria for the given field, sorting ascending
|
ElasticQuery.InnerHitsBuilder |
orderByDesc(String field)
Adds a sort criteria for the given field, sorting descending
|
protected InnerHitsBuilder(String name, int size)
public ElasticQuery.InnerHitsBuilder orderByAsc(String field)
field
- the field to sort bypublic ElasticQuery.InnerHitsBuilder orderByDesc(String field)
field
- the field to sort byCopyright © 2018. All rights reserved.