From 0160d91c2c4d7a0df52e6ed2212d9d0bac6c5375 Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Tue, 21 Jun 2016 15:18:59 +0200 Subject: [PATCH] Removed docs for precision_step - no longer used --- docs/reference/mapping/params.asciidoc | 2 - .../mapping/params/precision-step.asciidoc | 56 ------------------- .../mapping/types/geo-point.asciidoc | 6 -- .../mapping/types/token-count.asciidoc | 5 -- 4 files changed, 69 deletions(-) delete mode 100644 docs/reference/mapping/params/precision-step.asciidoc diff --git a/docs/reference/mapping/params.asciidoc b/docs/reference/mapping/params.asciidoc index d0591a7479f..5134ab6733a 100644 --- a/docs/reference/mapping/params.asciidoc +++ b/docs/reference/mapping/params.asciidoc @@ -80,8 +80,6 @@ include::params/null-value.asciidoc[] include::params/position-increment-gap.asciidoc[] -include::params/precision-step.asciidoc[] - include::params/properties.asciidoc[] include::params/search-analyzer.asciidoc[] diff --git a/docs/reference/mapping/params/precision-step.asciidoc b/docs/reference/mapping/params/precision-step.asciidoc deleted file mode 100644 index a7ea4d342e7..00000000000 --- a/docs/reference/mapping/params/precision-step.asciidoc +++ /dev/null @@ -1,56 +0,0 @@ -[[precision-step]] -=== `precision_step` - -Most <> datatypes index extra terms representing numeric -ranges for each number to make <> -faster. For instance, this `range` query: - -[source,js] --------------------------------------------------- - "range": { - "number": { - "gte": 0 - "lte": 321 - } - } --------------------------------------------------- - -might be executed internally as a <> that -looks something like this: - -[source,js] --------------------------------------------------- - "terms": { - "number": [ - "0-255", - "256-319" - "320", - "321" - ] - } --------------------------------------------------- - -These extra terms greatly reduce the number of terms that have to be examined, -at the cost of increased disk space. - -The default value for `precision_step` depends on the `type` of the numeric field: - -[horizontal] -`long`, `double`, `date`, `ip`:: `16` (3 extra terms) -`integer`, `float`, `short`:: `8` (3 extra terms) -`byte`:: `2147483647` (0 extra terms) -`token_count`:: `32` (0 extra terms) - -The value of the `precision_step` setting indicates the number of bits that -should be compressed into an extra term. A `long` value consists of 64 bits, -so a `precision_step` of 16 results in the following terms: - -[horizontal] -Bits 0-15:: `value & 1111111111111111 0000000000000000 0000000000000000 0000000000000000` -Bits 0-31:: `value & 1111111111111111 1111111111111111 0000000000000000 0000000000000000` -Bits 0-47:: `value & 1111111111111111 1111111111111111 1111111111111111 0000000000000000` -Bits 0-63:: `value` - - - - diff --git a/docs/reference/mapping/types/geo-point.asciidoc b/docs/reference/mapping/types/geo-point.asciidoc index 909d9444527..cf2ae13a99c 100644 --- a/docs/reference/mapping/types/geo-point.asciidoc +++ b/docs/reference/mapping/types/geo-point.asciidoc @@ -126,12 +126,6 @@ The following parameters are accepted by `geo_point` fields: Should the geo-point also be indexed as `.lat` and `.lon` sub-fields? Accepts `true` and `false` (default). -<>:: - - Controls the number of extra terms that are indexed for each lat/lon point. - Defaults to `16`. Ignored if `lat_lon` is `false`. - - ==== Using geo-points in scripts When accessing the value of a geo-point in a script, the value is returned as diff --git a/docs/reference/mapping/types/token-count.asciidoc b/docs/reference/mapping/types/token-count.asciidoc index c472c7c7770..49e4e3b424f 100644 --- a/docs/reference/mapping/types/token-count.asciidoc +++ b/docs/reference/mapping/types/token-count.asciidoc @@ -96,11 +96,6 @@ The following parameters are accepted by `token_count` fields: substituted for any explicit `null` values. Defaults to `null`, which means the field is treated as missing. -<>:: - - Controls the number of extra terms that are indexed to make - <> faster. Defaults to `32`. - <>:: Whether the field value should be stored and retrievable separately from