ExAliyunOts.Search.field_schema_float

You're seeing just the function field_schema_float, go back to ExAliyunOts.Search module for more information.
Link to this function

field_schema_float(field_name, options \\ [])

View Source

Specs

field_schema_float(field_name(), options()) :: map()

Official document in Chinese | English

Example

field_schema_float("price")

Options

  • :index, specifies whether to set as index, by default it is true;
  • :enable_sort_and_agg, specifies whether to support sort and statistics, by default it is true;
  • :store, specifies whether to store the origin value in search index for a better read performance, by default it is true;
  • :is_array, specifies whether the stored data is a JSON encoded list as a string, e.g. "[1.0,2.0]".