Also support camel case notation for minimal norwegian.

This commit is contained in:
Martijn van Groningen 2013-02-12 16:39:11 +01:00
parent ca7920a398
commit e54f010a4d
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ public class StemmerTokenFilterFactory extends AbstractTokenFilterFactory {
return new LatvianStemFilter(tokenStream);
} else if ("norwegian".equalsIgnoreCase(language)) {
return new SnowballFilter(tokenStream, new NorwegianStemmer());
} else if ("minimal_norwegian".equalsIgnoreCase(language)) {
} else if ("minimal_norwegian".equalsIgnoreCase(language) || "minimalNorwegian".equals(language)) {
return new NorwegianMinimalStemFilter(tokenStream);
} else if ("porter".equalsIgnoreCase(language)) {
return new PorterStemFilter(tokenStream);