Metadata describing one field of an Elasticsearch mapping - its name, display title, description, type and any sub-field - captured when an ESFieldBuilder is built. Search UIs and query builders use this to know how to label a field and format its indexed values without needing to inspect the raw mapping JSON.
Properties
| Property | Returns | Description |
|---|---|---|
| deprecated | boolean | Whether this field is deprecated and so hidden from the search UI while remaining indexed and queryable. |
| description | String | Description of what this field represents, as set on its builder. |
| idField | boolean | Whether this field is a relational identifier for its table or entity type. |
| name | String | Name of this field as it appears in the Elasticsearch mapping. |
| numericType | boolean | Whether this field's type is one of the numeric Elasticsearch types (long, double or integer). |
| subfield | ESFieldMeta | Metadata for this field's sub-field, if one was configured. |
| title | String | Display title for this field, resolved from the field name if none was explicitly set. |
| type | String | Elasticsearch type of this field, for example text, keyword, long or date. |
Methods
getDescription() · getName() · getTitle() · getType() · getSubfield() · isIdField() · isDeprecated() · formattedValues(Object rawValue) · isNumericType()
getDescription()
Returns: String
Description of what this field represents, as set on its builder.
getName()
Returns: String
Name of this field as it appears in the Elasticsearch mapping.
getTitle()
Returns: String
Display title for this field, resolved from the field name if none was explicitly set.
getType()
Returns: String
Elasticsearch type of this field, for example text, keyword, long or date.
getSubfield()
Returns: ESFieldMeta
Metadata for this field's sub-field, if one was configured.
isIdField()
Returns: boolean
Whether this field is a relational identifier for its table or entity type.
isDeprecated()
Returns: boolean
Whether this field is deprecated and so hidden from the search UI while remaining indexed and queryable.
formattedValues(Object rawValue)
Returns: RenderValue
Formats a raw indexed value for display: a comma-joined string for list values, a formatted date for date fields, or the value's plain string form otherwise. Overridden by RelationalESField and LookupESField to resolve identifiers to readable labels instead.
| Parameter | Description |
|---|---|
rawValue | the raw value read back from Elasticsearch for this field |
isNumericType()
Returns: boolean
Whether this field's type is one of the numeric Elasticsearch types (long, double or integer).