top of page

ElasticSearch String Datatype

  • taolius
  • Jan 20, 2016
  • 1 min read

Parameters for string fieldsedit

The following parameters are accepted by string fields:

fielddata

Can the field use in-memory fielddata for sorting, aggregations, or scripting? Accepts disabled or paged_bytes (default). Not analyzed fields will use doc values in preference to fielddata.

fields

Multi-fields allow the same string value to be indexed in multiple ways for different purposes, such as one field for search and a multi-field for sorting and aggregations, or the same string value analyzed by different analyzers.

ignore_above

Do not index or analyze any string longer than this value. Defaults to 0(disabled).

include_in_all

Whether or not the field value should be included in the _all field? Acceptstrue or false. Defaults to false if index is set to no, or if a parent objectfield sets include_in_all to false. Otherwise defaults to true.

index

Should the field be searchable? Accepts analyzed (default, treat as full-text field), not_analyzed (treat as keyword field) and no.

index_options

What information should be stored in the index, for search and highlighting purposes. Defaults to positions for analyzed fields, and to docs fornot_analyzed fields.

norms

Whether field-length should be taken into account when scoring queries. Defaults depend on the index setting:

  • analyzed fields default to { "enabled": true, "loading": "lazy" }.

  • not_analyzed fields default to { "enabled": false }.

null_value

Accepts a string value which is substituted for any explicit null values. Defaults to null, which means the field is treated as missing. If the field is analyzed, the null_value will also be analyzed.


 
 
 

Comments


© 2023 by BI World. Proudly created with Wix.com

  • Facebook Basic Black
  • Twitter Basic Black
  • YouTube Basic Black
bottom of page