@@ -146,9 +146,9 @@ specified.
146
146
--
147
147
148
148
`articles_case`::
149
- (Optional, boolean )
150
- If `true`, the filter treats any provided elisions as case sensitive.
151
- Defaults to `false`.
149
+ (Optional, Boolean )
150
+ If `true`, elision matching is case insensitive. If `false`, elision matching is
151
+ case sensitive. Defaults to `false`.
152
152
153
153
[[analysis-elision-tokenfilter-customize]]
154
154
==== Customize
@@ -157,30 +157,30 @@ To customize the `elision` filter, duplicate it to create the basis
157
157
for a new custom token filter. You can modify the filter using its configurable
158
158
parameters.
159
159
160
- For example, the following request creates a custom case-sensitive `elision`
160
+ For example, the following request creates a custom case-insensitive `elision`
161
161
filter that removes the `l'`, `m'`, `t'`, `qu'`, `n'`, `s'`,
162
162
and `j'` elisions:
163
163
164
164
[source,console]
165
165
--------------------------------------------------
166
- PUT /elision_case_sensitive_example
166
+ PUT /elision_case_insensitive_example
167
167
{
168
- "settings" : {
169
- "analysis" : {
170
- "analyzer" : {
171
- "default" : {
172
- "tokenizer" : "whitespace",
173
- "filter" : ["elision_case_sensitive"]
174
- }
175
- },
176
- "filter" : {
177
- "elision_case_sensitive" : {
178
- "type" : "elision",
179
- "articles" : ["l", "m", "t", "qu", "n", "s", "j"],
180
- "articles_case": true
181
- }
182
- }
168
+ "settings": {
169
+ "analysis": {
170
+ "analyzer": {
171
+ "default": {
172
+ "tokenizer": "whitespace",
173
+ "filter": [ "elision_case_insensitive" ]
174
+ }
175
+ },
176
+ "filter": {
177
+ "elision_case_insensitive": {
178
+ "type": "elision",
179
+ "articles": [ "l", "m", "t", "qu", "n", "s", "j" ],
180
+ "articles_case": true
183
181
}
182
+ }
184
183
}
184
+ }
185
185
}
186
186
--------------------------------------------------
0 commit comments