Difference between NGramFilterFactory and EdgeNGramFilterFactory
I am new to Solr. In my project NGramFilterFactory
, and EdgeNGramFilterFactory
two are used for the field. My understanding according to the doc is EdgeNGramFilterFactory
used for the request "starts with" and NGramFilterFactory
is appropriate for the request "contains".
I indexed a small dataset for both combinations (one in which I used only NGramFilterFactory
, and in the other I used both NGramFilterFactory
and EdgeNGramFilterFactory
), but I didn't see any difference in the output.
If my understanding is correct, the way EdgeNGramFilterFactory
is subset NGramFilterFactory
. If so, is there any advantage to using both types of filters in the same field?
source to share