Skip to content

Commit

Permalink
[DOCS] Add explicit articles_case parameter to Elision Token Filter…
Browse files Browse the repository at this point in the history
… example (#42987)
  • Loading branch information
jrodewig committed Jun 7, 2019
1 parent 918010a commit 0bb3116
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
A token filter which removes elisions. For example, "l'avion" (the
plane) will tokenized as "avion" (plane).

Accepts `articles` setting which is a set of stop words articles. For
example:
Accepts `articles` parameter which is a set of stop words articles. Also accepts
`articles_case`, which indicates whether the filter treats those articles as
case sensitive.

For example:

[source,js]
--------------------------------------------------
Expand All @@ -22,6 +25,7 @@ PUT /elision_example
"filter" : {
"elision" : {
"type" : "elision",
"articles_case": true,
"articles" : ["l", "m", "t", "qu", "n", "s", "j"]
}
}
Expand Down

0 comments on commit 0bb3116

Please sign in to comment.