From 9128106b4c4f860c05542db8c8389549ecfd4c6a Mon Sep 17 00:00:00 2001 From: James Rodewig Date: Fri, 14 Feb 2020 12:33:21 -0500 Subject: [PATCH] [DOCS] Remove 'analyzed string' references (#51946) The `string` field datatype was replaced by the `text` and `keyword` field datatypes in [5.0][0]. This removes several outdated references to 'analyzed string' fields. [0]:https://www.elastic.co/guide/en/elasticsearch/reference/5.0/breaking_50_mapping_changes.html#_string_fields_replaced_by_textkeyword_fields --- docs/reference/mapping/params/analyzer.asciidoc | 2 +- docs/reference/mapping/params/index-options.asciidoc | 4 ++-- docs/reference/mapping/types/search-as-you-type.asciidoc | 7 +++---- docs/reference/mapping/types/text.asciidoc | 7 +++---- docs/reference/mapping/types/token-count.asciidoc | 3 ++- 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/docs/reference/mapping/params/analyzer.asciidoc b/docs/reference/mapping/params/analyzer.asciidoc index 6d4ad699dc9..02f10363c44 100644 --- a/docs/reference/mapping/params/analyzer.asciidoc +++ b/docs/reference/mapping/params/analyzer.asciidoc @@ -1,7 +1,7 @@ [[analyzer]] === `analyzer` -The values of <> string fields are passed through an +The values of <> fields are passed through an <> to convert the string into a stream of _tokens_ or _terms_. For instance, the string `"The quick Brown Foxes."` may, depending on which analyzer is used, be analyzed to the tokens: `quick`, `brown`, diff --git a/docs/reference/mapping/params/index-options.asciidoc b/docs/reference/mapping/params/index-options.asciidoc index 26a59baa847..da66d2489cd 100644 --- a/docs/reference/mapping/params/index-options.asciidoc +++ b/docs/reference/mapping/params/index-options.asciidoc @@ -30,8 +30,8 @@ following settings: NOTE: <> don't support the `index_options` parameter any longer. -<> string fields use `positions` as the default, and -all other fields use `docs` as the default. +<> fields use `positions` as the default, and all other fields use +`docs` as the default. [source,console] -------------------------------------------------- diff --git a/docs/reference/mapping/types/search-as-you-type.asciidoc b/docs/reference/mapping/types/search-as-you-type.asciidoc index 12e608fed87..a5cf2612f9c 100644 --- a/docs/reference/mapping/types/search-as-you-type.asciidoc +++ b/docs/reference/mapping/types/search-as-you-type.asciidoc @@ -185,7 +185,7 @@ the same way. <>:: The <> which should be used for - <> string fields, both at index-time and at + `text` fields, both at index-time and at search-time (unless overridden by the <>). Defaults to the default index analyzer, or the <>. @@ -216,7 +216,7 @@ the same way. <>:: The <> that should be used at search time on - <> fields. Defaults to the `analyzer` setting. + <> fields. Defaults to the `analyzer` setting. <>:: @@ -230,8 +230,7 @@ the same way. <>:: - Whether term vectors should be stored for an <> - field. Defaults to `no`. This option configures the root field and shingle + Whether term vectors should be stored for the field. Defaults to `no`. This option configures the root field and shingle subfields, but not the prefix subfield. diff --git a/docs/reference/mapping/types/text.asciidoc b/docs/reference/mapping/types/text.asciidoc index f3bbb257fb8..343135e2182 100644 --- a/docs/reference/mapping/types/text.asciidoc +++ b/docs/reference/mapping/types/text.asciidoc @@ -49,7 +49,7 @@ The following parameters are accepted by `text` fields: <>:: The <> which should be used for - <> string fields, both at index-time and at + the `text` field, both at index-time and at search-time (unless overridden by the <>). Defaults to the default index analyzer, or the <>. @@ -127,7 +127,7 @@ The following parameters are accepted by `text` fields: <>:: The <> that should be used at search time on - <> fields. Defaults to the `analyzer` setting. + the `text` field. Defaults to the `analyzer` setting. <>:: @@ -141,8 +141,7 @@ The following parameters are accepted by `text` fields: <>:: - Whether term vectors should be stored for an <> - field. Defaults to `no`. + Whether term vectors should be stored for the field. Defaults to `no`. <>:: diff --git a/docs/reference/mapping/types/token-count.asciidoc b/docs/reference/mapping/types/token-count.asciidoc index 69dfdbb31cd..613a960b0c6 100644 --- a/docs/reference/mapping/types/token-count.asciidoc +++ b/docs/reference/mapping/types/token-count.asciidoc @@ -45,7 +45,8 @@ GET my_index/_search } -------------------------------------------------- -<1> The `name` field is an analyzed string field which uses the default `standard` analyzer. +<1> The `name` field is a <> field which uses the default +`standard` analyzer. <2> The `name.length` field is a `token_count` <> which will index the number of tokens in the `name` field. <3> This query matches only the document containing `Rachel Alice Williams`, as it contains three tokens.