Fix reversed ShingleFilter constructor arguments
This commit is contained in:
parent
9b29950997
commit
e66bd4359a
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue