feat(peliasAdmin): Remove word delimiter filter #392
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The first error seen when trying to use our current schema with Elasticsearch 7 is:
The word delimiter token filter is only used in one place: the
peliasAdmin
analyzer.Looking at the documentation, this token filter does a lot: splitting words, handling punctuation, and even some basic stemming.
It really feels like an extremely convoluted tool and at this point I have a suspicion it is something that Elasticsearch would deprecate in the future.
Furthermore, according to our integration tests, it seems one of the key reasons we used it was to tokenize on hyphens, which we have done using the
peliasNameTokenizer
since #375.Considering how complicated this token filter is, and how it's now being used with relatively little effect, it seems like something we should remove.
Connects pelias/pelias#831