1.

Can you please list out different ElasticSearch data types for the document fields?

Answer»

Field types (also CALLED field data types) describe the type of information or data a field contains, such as a string or boolean, and its intended use. The following are some data types for document fields:

Common data types:

  • Binary: A binary value that is encoded as a BASE64 string.
  • Boolean: A true or false value.
  • Keywords: The keyword family, which includes the keyword, constant keyword, and wildcard.
  • Numbers: Numeric types such as long, double, float, bytes, integer, etc.
  • Dates: Date types, such as date_nano, date.
  • Alias: Represents the alias of an existing field.

Objects and relational types:

  • Object: Represent a JSON object.
  • Nested: A JSON object that maintains a relationship between its subfields.
  • Flattened: An entire JSON object represented by a single field value.\
  • Join: Establishes a parent/child relationship between documents WITHIN an index.

Structured and Spatial data types:

  • Range: Range types, like date_range, long_range, float_range, double_range, and IP_range.
  • Point: Arbitrary cartesian points.
  • Geo_point: Longitude and latitude points
  • Shape: Arbitrary cartesian geometries.
  • Geo_shape: COMPLEX shapes like POLYGONS.


Discussion

No Comment Found