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

[SearchBundle, NodeSearchBundle] : change nGram to ngram #3330

Closed
wants to merge 1 commit into from

Conversation

delboy1978uk
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets N/A

When using elastic search 8, elastica throws the following Exception

The [nGram] tokenizer name was deprecated in 7.6. Please use the tokenizer name to [ngram] for indices created in versions 8 or higher instead.

Version 7 uses ngram as well as nGram as can be seen here, https://www.elastic.co/guide/en/elasticsearch/reference/7.14/analysis-ngram-tokenizer.html#_example_output_13 , so this pull request simply lower cases the G's, which allows the search population command to successfully run again

@acrobat
Copy link
Member

acrobat commented Feb 6, 2024

Thanks @delboy1978uk for the PR, can you rebase it on the 6.x so we can include it in the upcoming 6.4 release? Thanks!

@delboy1978uk
Copy link
Contributor Author

I've cherry-picked it onto the 6.x branch here #3331 can we merge both? I'm using the 7.1 branch in this project. If not I can set composer to use my fork for tnow

@acrobat acrobat removed this from the 6.4.0 milestone Feb 18, 2024
@acrobat
Copy link
Member

acrobat commented Feb 18, 2024

Fixed in #3331

@acrobat acrobat closed this Feb 18, 2024
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.

2 participants