summaryrefslogtreecommitdiff
path: root/docs/reference/analysis/tokenfilters/elision-tokenfilter.asciidoc
blob: c44ccffd51e61442ea7e86e67a23140d3b3e1d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
[[analysis-elision-tokenfilter]]
=== Elision Token Filter

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:

[source,js]
--------------------------------------------------
"index" : {
    "analysis" : {
        "analyzer" : {
            "default" : {
                "tokenizer" : "standard",
                "filter" : ["standard", "elision"]
            }
        },
        "filter" : {
            "elision" : {
                "type" : "elision",
                "articles" : ["l", "m", "t", "qu", "n", "s", "j"]
            }
        }
    }
}
--------------------------------------------------