Raw Elasticsearch indices
Every property except objects, lists and vectors can carry an elasticsearch object, which replaces the generic Elasticsearch mapping of the property:
{ "type": "string", "elasticsearch": { "type": "keyword", "ignore_above": 64, "index": false }}Only simple field types and parameters are available, and the Elasticsearch type has to fit the property type:
| Property type | Elasticsearch types |
|---|---|
boolean | boolean |
integer | long, integer, short, byte |
number | double, float, half_float, scaled_float |
string | text, keyword |
datetime | date |
Parameters: index, doc_values, coerce, ignore_malformed, ignore_above (keyword), scaling_factor (required for scaled_float), format (date, one of strict_date_optional_time, strict_date_optional_time_nanos, epoch_millis, epoch_second) and analyzer / search_analyzer (text, built-in analyzers only).
Everything else is rejected on purpose, because it moves logic or unbounded work into the search index: field types like join, nested, flattened, percolator, rank_feature, aggregate_metric_double, alias and runtime, scripts, custom analyzers, copy_to, multi-fields and meta. Generic, database independent types are the way to get more.