How to prevent ngram omits words that have length < ngram.minLength

Hi all,
Is there anyway to keep the words that shorter than min length of ngram ?
For example:
the data is "abc x" ==> ngram(2,4) will generates: ab, bc, abc. It remove
"x" since "x" has length=1. I want to keep "x" because it still a keyword.
What filters I need to use in order to keep it? I'm using ES 0.90 ?
I think ngram should have an option to keep shorter words like this case.


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit