Description
CommonGramsFilterFactory's use of the "words" and "ignoreCase" config options is inconsistent with how StopFilterFactory uses them - leading to "ignoreCase=true" not being respected unless "words" is specified...
StopFilterFactory...
public void inform(ResourceLoader loader) throws IOException { if (stopWordFiles != null) { ... } else { ... stopWords = new CharArraySet(EnglishAnalyzer.ENGLISH_STOP_WORDS_SET, ignoreCase); } }
CommonGramsFilterFactory...
@Override public void inform(ResourceLoader loader) throws IOException { if (commonWordFiles != null) { ... } else { commonWords = EnglishAnalyzer.ENGLISH_STOP_WORDS_SET; } }
Attachments
Issue Links
- links to