elasticsearch/docs/reference/mapping
Christoph Büscher ea2dbd93b4
Add field type for version strings (#59773)
This PR adds a new 'version' field type that allows indexing string values
representing software versions similar to the ones defined in the Semantic
Versioning definition (semver.org). The field behaves very similar to a
'keyword' field but allows efficient sorting and range queries that take into
accound the special ordering needed for version strings. For example, the main
version parts are sorted numerically (ie 2.0.0 < 11.0.0) whereas this wouldn't
be possible with 'keyword' fields today.

Valid version values are similar to the Semantic Versioning definition, with the
notable exception that in addition to the "main" version consiting of
major.minor.patch, we allow less or more than three numeric identifiers, i.e.
"1.2" or "1.4.6.123.12" are treated as valid too.

Relates to #48878
2020-09-21 11:04:22 +02:00
..
dynamic [DOCS] Fix hyphenation for "time series" (#61472) 2020-08-24 10:34:41 -04:00
fields [DOCS] Remove metrics sidebar in _source docs (#60777) 2020-08-05 15:57:29 -04:00
params [DOCS] Replace Wikipedia links with attribute (#61171) 2020-08-17 09:44:24 -04:00
types Add field type for version strings (#59773) 2020-09-21 11:04:22 +02:00
dynamic-mapping.asciidoc [DOCS] Replace datatype with data type (#58972) 2020-07-07 13:52:10 -04:00
fields.asciidoc [DOCS] Fix metadata field refs (#60764) 2020-08-05 13:21:00 -04:00
params.asciidoc [DOCS] Replace datatype with data type (#58972) 2020-07-07 13:52:10 -04:00
removal_of_types.asciidoc Remove [removal-of-types] docs page, and point to 7x docs (#53670) 2020-03-18 14:13:00 +00:00
types.asciidoc Add field type for version strings (#59773) 2020-09-21 11:04:22 +02:00