What should be the value of max_gram and min_gram in Elasticsearch?

I was working on elasticsearch and the requirement was to implement like query “%text%” ( like mysql %like% ). We could use wildcard, regex or query string but those are slow. Hence i took decision to use ngram token filter for like query. It was quickly implemented on local and works exactly i want. The problem To know the actual behavior, I implemented the same on staging server. I found some problem while we start indexing on staging....

September 22, 2019 · 2 min · Ashish Tiwari