This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
index
editindex
editThe index
option controls whether field values are indexed. It accepts true
or false
and defaults to true
.
Indexing a field creates data structures that enable the field to be queried efficiently. Numeric types, date types, the boolean type, ip type, geo_point type and the keyword type can also be queried when they are not indexed but only have doc values enabled. Queries on these fields are slow as a full scan of the index has to be made. All other fields are not queryable.