I am a beginner in Solr. In my project, NGramFilterFactory
and EdgeNGramFilterFactory
, both are being used for a field. My understanding as per the document is EdgeNGramFilterFactory
is used for "starts with" query while NGramFilterFactory
is suitable for "contains" query.
I indexed a small dataset for both combinations (one in which I used only NGramFilterFactory
and in another I used both NGramFilterFactory
and EdgeNGramFilterFactory
) but I did not see any difference in the output.
If my understanding is correct, in a way EdgeNGramFilterFactory
is a subset of NGramFilterFactory
. If this is true then is there any benefit of using both types of filters on the same field?
EdgeNGramFilterFactory
wont affect result as this change is going to be in production. – Obligatory