Fix reversed ShingleFilter constructor arguments

This commit is contained in:
Kenn Knowles 2012-08-31 15:56:22 -04:00 committed by Shay Banon
parent 9b29950997
commit e66bd4359a
1 changed files with 2 additions and 2 deletions

View File

@ -54,10 +54,10 @@ public class ShingleTokenFilterFactory extends AbstractTokenFilterFactory {
@Override
public TokenStream create(TokenStream tokenStream) {
ShingleFilter filter = new ShingleFilter(tokenStream, maxShingleSize, minShingleSize);
ShingleFilter filter = new ShingleFilter(tokenStream, minShingleSize, maxShingleSize);
filter.setOutputUnigrams(outputUnigrams);
filter.setOutputUnigramsIfNoShingles(outputUnigramsIfNoShingles);
filter.setTokenSeparator(tokenSeparator);
return filter;
}
}
}