Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PreConfiguredTokenFilters getSynonymFilter() implementations #43678

Merged
merged 2 commits into from Jun 28, 2019

Conversation

romseygeek
Copy link
Contributor

Backport of #38839 - this was added to 7.0 and 7.2 but missed 7.x

When we added support for TokenFilterFactories to specialise how they were used when parsing
synonym files, PreConfiguredTokenFilters were set up to either apply themselves, or be ignored.
This behaviour is a leftover from an earlier iteration, and also has an incorrect default.

This commit makes preconfigured token filters usable in synonym file parsing by default, and brings
those filters that should not be used into line with index-specific filter factories; in indexes created
before version 7 we emit a deprecation warning, and we throw an error in indexes created after.

Fixes #38793

…stic#38839)

When we added support for TokenFilterFactories to specialise how they were used when parsing
synonym files, PreConfiguredTokenFilters were set up to either apply themselves, or be ignored.
This behaviour is a leftover from an earlier iteration, and also has an incorrect default.

This commit makes preconfigured token filters usable in synonym file parsing by default, and brings
those filters that should not be used into line with index-specific filter factories; in indexes created
before version 7 we emit a deprecation warning, and we throw an error in indexes created after.

Fixes elastic#38793
@romseygeek romseygeek added >non-issue :Search/Analysis How text is split into tokens v7.3.0 labels Jun 27, 2019
@romseygeek romseygeek requested a review from jimczi June 27, 2019 08:27
@romseygeek romseygeek self-assigned this Jun 27, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@romseygeek
Copy link
Contributor Author

@elasticmachine update branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>non-issue :Search/Analysis How text is split into tokens v7.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants