Is it possible to disable maxGramSize
for solr.EdgeNGramFilterFactory
?
Sunspot's Wiki article Matching substrings in fulltext search points to Solr EdgeNGramFilterFactory . The only information Apache solr's Wiki has on maxGramSize
is that by default its value is 1.
Is there some way of explicitly stating that there's no maximum gram size, or is the only possibility to set maxGramSize
to a number far larger than I expect any individual word to have a length of?
When having a look at the current code of the EdgeNGramTokenFilter (Solr 5.3.0), no there is no such thing. But you can use 231-1 (=2147483647) which is the maximum value for an int in Java.