[DOCS] Add explicit `articles_case` parameter to Elision Token Filter example (#42987)
This commit is contained in:
parent
755ba72896
commit
5342616a23
|
@ -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"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue