Kademi's abstraction over Elasticsearch SearchHitField to enable pluggable implementations. SearchHitField represents a field value retrieved from a search hit.


Properties

PropertyReturnsDescription
nameStringName of the field this value belongs to, as requested in the search query. Never null.
valueObjectFirst value for this field, equivalent to the first entry returned by getValues. Null if the field has no values.
valuesList<Object>All values for this field. A search field can be multi-valued, for example a stored array field, so this list may hold more than one entry. Never null; empty if the field carries no values.

Methods

getName()

Returns: String

Name of the field this value belongs to, as requested in the search query. Never null.

getValue()

Returns: Object

First value for this field, equivalent to the first entry returned by getValues. Null if the field has no values.

getValues()

Returns: List<Object>

All values for this field. A search field can be multi-valued, for example a stored array field, so this list may hold more than one entry. Never null; empty if the field carries no values.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.