From df439824b9ab5c28dcc0e01fd0c44c597dc7576d Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Wed, 3 Mar 2021 09:27:23 -0500 Subject: [PATCH] [DOCS] Fix case sensitivity for elision token filter (#69873) (#69880) --- .../tokenfilters/elision-tokenfilter.asciidoc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/reference/analysis/tokenfilters/elision-tokenfilter.asciidoc b/docs/reference/analysis/tokenfilters/elision-tokenfilter.asciidoc index 3d6d629886c39..a1e9a5d9ea151 100644 --- a/docs/reference/analysis/tokenfilters/elision-tokenfilter.asciidoc +++ b/docs/reference/analysis/tokenfilters/elision-tokenfilter.asciidoc @@ -147,8 +147,8 @@ specified. `articles_case`:: (Optional, Boolean) -If `true`, the filter treats any provided elisions as case sensitive. -Defaults to `false`. +If `true`, elision matching is case insensitive. If `false`, elision matching is +case sensitive. Defaults to `false`. [[analysis-elision-tokenfilter-customize]] ==== Customize @@ -157,24 +157,24 @@ To customize the `elision` filter, duplicate it to create the basis for a new custom token filter. You can modify the filter using its configurable parameters. -For example, the following request creates a custom case-sensitive `elision` +For example, the following request creates a custom case-insensitive `elision` filter that removes the `l'`, `m'`, `t'`, `qu'`, `n'`, `s'`, and `j'` elisions: [source,console] -------------------------------------------------- -PUT /elision_case_sensitive_example +PUT /elision_case_insensitive_example { "settings": { "analysis": { "analyzer": { "default": { "tokenizer": "whitespace", - "filter": [ "elision_case_sensitive" ] + "filter": [ "elision_case_insensitive" ] } }, "filter": { - "elision_case_sensitive": { + "elision_case_insensitive": { "type": "elision", "articles": [ "l", "m", "t", "qu", "n", "s", "j" ], "articles_case": true