jprante / elasticsearch-analysis-decompound

Decompounding Plugin for Elasticsearch
GNU General Public License v2.0
87 stars 38 forks source link

Implement respecting keywords #14

Closed fgrosse closed 9 years ago

fgrosse commented 9 years ago

Currently the DecompoundTokenFilter does not respect keywords that might come from any earlier Keyword Marker Token Filter. With this PR you can enable this behavior in the configuration by setting "respect_keywords": true. This will prevent the DecompoundTokenFilter from decompounding any keywords.

Please note that I set the default value for respect_keywords to false so this change is completely backwards compatible. also all changes are covered by tests.

jprante commented 9 years ago

Fantastic! Thank you.

fgrosse commented 9 years ago

And big thx for the plugin, works quite well so far :)