pelias / schema

elasticsearch schema files and tooling
MIT License
40 stars 76 forks source link

add 'trim' to the 'peliasKeywordNormalizer' filters #416

Open missinglink opened 4 years ago

missinglink commented 4 years ago

This PR is based on https://github.com/pelias/schema/pull/415. view diff

A nice-to-have but not a biggie, this PR ensures that normalized keyword fields are whitespace trimmed.

AFAIK to the trim filter not being supported in a normalizer from Lucene 7.3 (Elastic v6.4) so I suspect the tests will fail for ES5

Joxit commented 4 years ago

I think Travis agrees :smile: