-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Add preserve_original setting in ngram token filter #55432
Add preserve_original setting in ngram token filter #55432
Conversation
Pinging @elastic/es-search (:Search/Analysis) |
@markharwood thanks for the suggestions, I'll address them soon and let you know. |
My bad - that's the wrong test class - it's for the NGramTokenizer rather than the NGramTokenFilter you modified. I'm not sure there is an existing class for testing that TokenFilter |
@markharwood Sorry I forgot, yeah yesterday I searched for the test class of this but couldn't find one and should have mentioned that. Also, I added the documentation of newly added Now please let me know if I need to do something else, would like to close this before I go to bed today :) |
@markharwood Hope you are doing well. Please go through my last commit and let me know if I need to address some more comments. |
`preserve_original`:: | ||
(Optional, boolean) | ||
If set to true then it would also emit the original token. Defaults to `true`. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default is false? (And needs to be for backwards-compatibility reasons).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markharwood thanks for pointing this, Addressed it in my latest comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markharwood I also rebased my feature branch with the latest master code and squashed my commits. Let me know if anything else required from my side.
a55e1b4
to
6e45024
Compare
@markharwood Added the missing test file
|
4ebc046
to
f1dcee9
Compare
@elasticmachine ok to test |
…n-filter and added the missing test class.
da2bf3d
to
5059c42
Compare
Hi Amit. |
@markharwood It's OK I can understand. Christoph helped me with similar PR in Could you please do the final review, please note that I've added a missing test class as well, as pointed by you earlier and addressed all other comments already. |
…ilter (#55432) (#56100) Authored-by: Amit Khandelwal <[email protected]>
Many thanks for this, Amit. |
Relates: #4718, elastic/elasticsearch#55432 Added in Elasticsearch 7.8.0
Relates: #4718, elastic/elasticsearch#55432 Added in Elasticsearch 7.8.0
Relates: #4718, elastic/elasticsearch#55432 Added in Elasticsearch 7.8.0
Relates: #4718, elastic/elasticsearch#55432 Added in Elasticsearch 7.8.0 Co-authored-by: Russ Cam <[email protected]>
Relates: #4718, elastic/elasticsearch#55432 Added in Elasticsearch 7.8.0 Co-authored-by: Russ Cam <[email protected]>
No description provided.