🔍 Elasticsearch
Intermediate
What field data types does Elasticsearch support?
Answer
Elasticsearch supports a rich set of field data types. String types: text (analyzed, for full-text search) and keyword (not analyzed, for exact match/aggregations). Numeric types: long, integer, short, byte, double, float. Date types: date (stores dates as milliseconds since epoch). Boolean: boolean. Geo types: geo_point (lat/lon) and geo_shape (complex geometries). Specialized types: ip (IPv4/IPv6 addresses with CIDR range query support), dense_vector (fixed-length float arrays for vector search / kNN), completion (for fast autocomplete suggestions), and binary (Base64-encoded binary data).
Previous
What are geo queries in Elasticsearch?
Next
What is the parent-child relationship (join field) in Elasticsearch?
More Elasticsearch Questions
View all →- Intermediate What is the difference between query context and filter context in Elasticsearch?
- Intermediate What is a bool query in Elasticsearch?
- Intermediate What are aggregations in Elasticsearch?
- Intermediate What is the difference between text and keyword field types?
- Intermediate What are index templates and component templates in Elasticsearch?