cancel
Showing results for 
Search instead for 
Did you mean: 

Reindex Showing unknown Error

Reindex Showing unknown Error

UI did upgrade my magento 2.3.4 to 2.4.2.

I did remove my elastic search v6.2.x and installed a new one v 7.0.0.

Then tried to reindex through terminal it showing error like

 

Catalog Search index process unknown error:
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"The difference between max_gram and min_gram in NGram Tokenizer must be less than or equal to: [1] but was [2]. This limit can be set by changing the [index.max_ngram_diff] index level setting."}],"type":"illegal_argument_exception","reason":"The difference between max_gram and min_gram in NGram Tokenizer must be less than or equal to: [1] but was [2]. This limit can be set by changing the [index.max_ngram_diff] index level setting."},"status":400}

 

 

How to I fix this issue..

I did try 

curl -X PUT "localhost:9200/my-index-000001/_settings?pretty" -H 'Content-Type: application/json' -d'{"index" : {"max_ngram_diff" : "50"}}'

 

Then restart the ElaticSearch this time showing

"Catalog Search index exception: Could not ping search engine: No alive nodes found in your cluster"

 

Again tried the reindex comment but again it showing the first unknown error.

 

How to I fix this issue. Please give me a solution

kalathinkal
1 REPLY 1

Re: Reindex Showing unknown Error

Please share if any solution.

kalathinkal