Class ResponseDocument
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.response.search.ResponseDocument
-
public abstract class ResponseDocument extends Object
Represents a search response document. This class is used to map the _meta fields onto the search results document
-
-
Constructor Summary
Constructors Constructor Description ResponseDocument()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ResponseDocument>getGroupedDocuments()The _group documents related to this resultStringgetGroupKey()The key used to group the resultMetaFieldgetMeta()Metadata about this search result
-
-
-
Method Detail
-
getMeta
public MetaField getMeta()
Metadata about this search result- Returns:
- the document metadata
-
getGroupedDocuments
public List<ResponseDocument> getGroupedDocuments()
The _group documents related to this result- Returns:
- all other documents that share an identical value within the grouped field, or empty list if grouping wasn't applied
-
getGroupKey
public String getGroupKey()
The key used to group the result- Returns:
- the key used to group the result, or null if grouping wasn't applied
-
-