To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Kademi's abstraction over Elasticsearch SearchHitField to enable pluggable implementations. SearchHitField represents a field value retrieved from a search hit.
Properties
| Property | Returns | Description |
|---|---|---|
| name | String | Name of the field this value belongs to, as requested in the search query. Never null. |
| value | Object | First value for this field, equivalent to the first entry returned by getValues. Null if the field has no values. |
| values | 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. |
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.