Fix reversed ShingleFilter constructor arguments
This commit is contained in:
parent
9b29950997
commit
e66bd4359a
|
@ -54,10 +54,10 @@ public class ShingleTokenFilterFactory extends AbstractTokenFilterFactory {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TokenStream create(TokenStream tokenStream) {
|
public TokenStream create(TokenStream tokenStream) {
|
||||||
ShingleFilter filter = new ShingleFilter(tokenStream, maxShingleSize, minShingleSize);
|
ShingleFilter filter = new ShingleFilter(tokenStream, minShingleSize, maxShingleSize);
|
||||||
filter.setOutputUnigrams(outputUnigrams);
|
filter.setOutputUnigrams(outputUnigrams);
|
||||||
filter.setOutputUnigramsIfNoShingles(outputUnigramsIfNoShingles);
|
filter.setOutputUnigramsIfNoShingles(outputUnigramsIfNoShingles);
|
||||||
filter.setTokenSeparator(tokenSeparator);
|
filter.setTokenSeparator(tokenSeparator);
|
||||||
return filter;
|
return filter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue