A schema-less feature lets Elasticsearch index JSON documents before a schema has been explicitly defined. Elasticsearch examines field values and derives their data types implicitly, helping developers start quickly. section 3.2.1 section 4.0
Indexing a movie document
A movie document can contain a title and synopsis as text, a release date as a date, and gross earnings as a floating-point value. These fields can be indexed without first defining a schema; Elasticsearch infers their types from the data. section 4.0
Use the feature with these operational considerations:
- Use schema-less indexing during testing and development to get data into Elasticsearch quickly. section 3.2.1 section 4.0
- Prefer an explicit mapping in production unless the requirements do not need one, because inferred choices can become problematic. section 3.2.1 section 4.0
- Define mappings when fields need deliberate treatment for full-text analysis, sorting, filtering, or aggregations. section 4.0
