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

Remove nGram and edgeNGram token filter names (#38911) #39070

Merged
merged 4 commits into from
Feb 21, 2019

Conversation

cbuescher
Copy link
Member

In #30209 we deprecated the camel case nGram token filter in favour of ngram and
deprecated edgeNGram in favour of edge_ngram. Using these names has been deprecated
since 6.4, issuing deprecation warnings on new indices since then. In addition to remove the filter
in 8.0 completely (see ##38911) we should not allow index creation using these filter names
starting with 8.0. This PR adds throwing an IAE when this filter name is used in indices created from
7.0 on.

In elastic#30209 we deprecated the camel case `nGram` filter name in favour of `ngram` and
did the same for `edgeNGram` and `edge_ngram`. Using these names has been deprecated
since 6.4 and is issuing deprecation warnings since then.
I think we can remove these filters in 8.0. In a backport of this PR I would change what was a
dreprecation warning from 6.4. to an error starting with new indices created in 7.0.
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@cbuescher
Copy link
Member Author

@jimczi like discussed, the backport for #38911. Would you mind taking a look?

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cbuescher , I left one question.

@cbuescher
Copy link
Member Author

@jimczi thanks, I pushed a commit adressing your comments

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left minor comments but feel free to merge without another review.

@cbuescher cbuescher merged commit 80170b5 into elastic:7.0 Feb 21, 2019
cbuescher pushed a commit that referenced this pull request Feb 21, 2019
In #30209 we deprecated the camel case `nGram` filter name in favour of `ngram` and
did the same for `edgeNGram` and `edge_ngram` and we are removing those names in
8.0. This change disallows using the deprecated names for new indices created in 7.0 by
throwing an error if these filters are used.

Relates to #38911
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants