
## Metadata
- Author: [[elastic.co|Elastic]]
- Full Title:: Data In: Documents and Indicesedit
- Category:: #🗞️Articles
- URL:: https://www.elastic.co/guide/en/elasticsearch/reference/master/documents-indices.html
- Finished date:: [[2023-04-20]]
## Highlights
> By default, Elasticsearch indexes all data in every field and each indexed field has a dedicated, optimized data structure. For example, text fields are stored in inverted indices, and numeric and geo fields are stored in BKD trees. The ability to use the per-field data structures to assemble and return search results is what makes Elasticsearch so fast. ([View Highlight](https://read.readwise.io/read/01gydpghsbvq169kqvts2b7mje))
> you might want to index a string field as both a text field for full-text search and as a keyword field for sorting or aggregating your dat ([View Highlight](https://read.readwise.io/read/01gydpj7wnzrqw90s6qy03sazv))