elasticsearch/docs/reference/mapping
Yannick Welsch e421477ac8
Allow docvalues-only search on number types (#82409)
Allows searching on number field types (long, short, int, float, double, byte, half_float) when those fields are not
indexed (index: false) but just doc values are enabled.

This enables searches on archive data, which has access to doc values but not index structures. When combined with
searchable snapshots, it allows downloading only data for a given (doc value) field to quickly filter down to a select set
of documents.

Note to reviewers:

I have split isSearchable into two separate methods isIndexed and isSearchable on MappedFieldType. The former one is
about whether actual indexing data structures have been used (postings or points), and the latter one on whether you
can run queries on the given field (e.g. used by field caps). For number field types, queries are now allowed whenever
points are available or when doc values are available (i.e. searchability is expanded).

Relates #81210 and #52728
2022-01-13 16:23:01 +01:00
..
dynamic [DOCS] Fix field name to match description (#81621) 2021-12-13 15:51:42 -05:00
fields [DOCS] Custom routing for data streams 2021-11-10 07:11:50 -06:00
params Allow docvalues-only search on number types (#82409) 2022-01-13 16:23:01 +01:00
types Allow docvalues-only search on number types (#82409) 2022-01-13 16:23:01 +01:00
dynamic-mapping.asciidoc [DOCS] Clean up index template xrefs (#67264) 2021-01-11 12:38:09 -05:00
explicit-mapping.asciidoc [DOCS] Replace `put` with `create or update` in API names (#70330) 2021-03-15 14:49:44 -04:00
fields.asciidoc Support fetching _tier field value (#71379) 2021-04-08 11:41:52 -07:00
mapping-settings-limit.asciidoc [DOCS] Relocate `index.mapping.dimension_fields.limit` setting docs (#80964) 2021-11-23 14:51:28 -05:00
params.asciidoc Clarify field data cache behavior in docs (#64375) 2020-11-20 13:53:23 -08:00
removal_of_types.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
runtime.asciidoc Fix typo (#80925) 2021-11-23 16:28:53 -05:00
types.asciidoc [DOCS] Change field alias anchor (#73043) 2021-05-13 09:32:36 -04:00