mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
Require [articles] setting in elision filter (#43083)
We should throw an exception at construction time if a list of articles is not provided, otherwise we can get random NPEs during indexing. Relates to #43002
This commit is contained in:
parent
98ed5e985f
commit
d2c696d54b
5 changed files with 64 additions and 3 deletions
|
@ -4,8 +4,9 @@
|
|||
A token filter which removes elisions. For example, "l'avion" (the
|
||||
plane) will tokenized as "avion" (plane).
|
||||
|
||||
Accepts `articles` parameter which is a set of stop words articles. Also accepts
|
||||
`articles_case`, which indicates whether the filter treats those articles as
|
||||
Requires either an `articles` parameter which is a set of stop word articles, or
|
||||
`articles_path` which points to a text file containing the stop set. Also optionally
|
||||
accepts `articles_case`, which indicates whether the filter treats those articles as
|
||||
case sensitive.
|
||||
|
||||
For example:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue