-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
max_ngram_diff problem in _analyze api #56586
Comments
@aninda052 Thank you for raising this to our attention. I've identified two issues from your description:
Can someone from @elastic/es-search investigate further, please? |
I opened #56650 to address the docs issue that @albertzaharovits found. As for the ngram diff issue, here's a suggested workaround:
To me this is a reasonable limitation of the analyze API, and doesn't seem like a bug. I don't think we would want to add the ability to pass index settings when testing out a transient custom analysis chain. |
thanks for the suggesting @jtibshirani :) |
Elasticsearch 7.6.2
I'm trying to test a analyzer using _analyze api . In my filter i use 'ngram' with 'min_gram' = 3 and 'max_gram' = 8 , AS "The difference between max_gram and min_gram in NGram Tokenizer must be less than or equal to 1 " i can't use ngram with my desire setting . I can not use "max_ngram_diff" in _analyze api . Is there any way i can test my analyzer ?
my analyzer "
{
"tokenizer": "standard",
"filter": [
"lowercase",
{
"type" : "ngram",
"min_gram": 3,
"max_gram": 8,
"token_chars": [ "letter", "digit" ]
"text": "test text"
}
Elasticsearch 7.6.2
The text was updated successfully, but these errors were encountered: