: I have a question about using the  "protected=" attribute with
: SnowballPorterFilterFactory filter.

SnowballPorterFilterFactory doesn't (and has never) supported a protwords 
option ... that feature is unique to the EnglishPorterFilterFactory.

this is probably just due to how they came about back in the pre-Apache 
days of Solr ... the lucene SnowballFilter has to use reflection because 
of the way the underlying Snowball Stemmer API works, and the 
SnowballPorterFilterFactory just generates intsances of SnowballFilter.  
Yonik wrote EnglishPorterFilterFactory to be more efficient by not doing 
the reflection (at the expense of being hardcoded to use English) and when 
the protwords feature was needed later it looks like it was only added 
there.

adding a protwords option to SnowballPorterFilterFactory would be 
possible, but the best way to do it would probably be to add support in 
the underlying Lucene-Java class, then add a config option for it in Solr.

(if anyone is so inclined)




-Hoss

Reply via email to