public class TopHitsAggregation extends AggregationCommand
://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-metrics-top-hits-aggregation
.htmlAggregationCommand.OrderCommand| Modifier and Type | Field and Description |
|---|---|
List<String> |
excludeFields
The fields that should not be returned, even if in
addIncludeField(String) a wildcard expression did
match the field. |
List<String> |
includeFields
The fields for which values are to be returned.
|
Integer |
size
For number of documents to return.
|
name, subaggregations| Constructor and Description |
|---|
TopHitsAggregation() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIncludeField(String field) |
addSubaggregation, getSubaggregationpublic List<String> includeFields
The fields for which values are to be returned. This is similar to the SearchServerCommand.fieldsToReturn
parameter. The asterisk wildcard can be used to specify multiple or even all fields.
NOTE: In ElasticSearch, for any field value to be returned, the special _source field must be activated at index creation time. For some reason, one cannot just return the stored fields of a document.
public List<String> excludeFields
The fields that should not be returned, even if in addIncludeField(String) a wildcard expression did
match the field. The asterisk wildcard can be used to specify multiple or even all fields.
public Integer size
SearchServerCommand.rows parameter.public void addIncludeField(String field)
Copyright © 2017 JULIE Lab, Germany. All rights reserved.