[DOCS] Add explicit `articles_case` parameter to Elision Token Filter example (#42987)

This commit is contained in:
James Rodewig 2019-06-07 11:22:32 -04:00
parent 755ba72896
commit 5342616a23
1 changed files with 6 additions and 2 deletions

View File

@ -4,8 +4,11 @@
A token filter which removes elisions. For example, "l'avion" (the A token filter which removes elisions. For example, "l'avion" (the
plane) will tokenized as "avion" (plane). plane) will tokenized as "avion" (plane).
Accepts `articles` setting which is a set of stop words articles. For Accepts `articles` parameter which is a set of stop words articles. Also accepts
example: `articles_case`, which indicates whether the filter treats those articles as
case sensitive.
For example:
[source,js] [source,js]
-------------------------------------------------- --------------------------------------------------
@ -22,6 +25,7 @@ PUT /elision_example
"filter" : { "filter" : {
"elision" : { "elision" : {
"type" : "elision", "type" : "elision",
"articles_case": true,
"articles" : ["l", "m", "t", "qu", "n", "s", "j"] "articles" : ["l", "m", "t", "qu", "n", "s", "j"]
} }
} }