Edge Ngram search text greater than max_gram

(Srirama Chakka) #1

We have implemented type ahead functionality using Edge Ngram with min_gram:3 and max_gram:20 on email text field.

We have one more requirement where user can enter text more than 20 characters in the email field and expectation is to fetch any matching email address. Basically the searchText length is more than max_gram length and when I use either prefix query or term query no results returned.

Do I need to have one more field to support searching text more than 20 characters?? I don't want to increase max_gram length. Using a new field I am planning to use prefix query.

Please suggest any other better alternate.

(system) #2