Skip to main content

🗓️ 24092025 1116
📎

elasticsearch_types

Core Field Types

TypeDescriptionUse Case
textAnalyzed field for full-text search. Tokenized, stemmedSearchable content (descriptions, titles)
keywordExact value field. Not analyzedFiltering, sorting, aggregations (IDs, categories, tags)
integer/longWhole numbersCounters, IDs, quantities
float/doubleDecimal numbersPrices, measurements, scores
dateTimestamps and datesCreated/updated times, events
booleantrue/false valuesFlags, status indicators
objectNested JSON objects (flattened)Structured data without array relationships
nestedMaintains object relationships in arraysComplex nested structures
geo_pointLatitude/longitude coordinatesLocation data, mapping
ipIPv4/IPv6 addressesNetwork data, security logs

Best Practices

  • Use multi-fields when you need both search (text) and aggregation (keyword) capabilities
  • Choose appropriate numeric types based on value ranges and precision needs

References

  • Cursor