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:
Alan Woodward 2019-06-27 08:56:26 +01:00 committed by GitHub
parent 98ed5e985f
commit d2c696d54b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 64 additions and 3 deletions

View file

@ -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: