From e66bd4359a5d5e03a04a4a8a6bb26f25fe107f24 Mon Sep 17 00:00:00 2001 From: Kenn Knowles Date: Fri, 31 Aug 2012 15:56:22 -0400 Subject: [PATCH] Fix reversed ShingleFilter constructor arguments --- .../index/analysis/ShingleTokenFilterFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/elasticsearch/index/analysis/ShingleTokenFilterFactory.java b/src/main/java/org/elasticsearch/index/analysis/ShingleTokenFilterFactory.java index 40fceee68b7..3a61bf2dc6c 100644 --- a/src/main/java/org/elasticsearch/index/analysis/ShingleTokenFilterFactory.java +++ b/src/main/java/org/elasticsearch/index/analysis/ShingleTokenFilterFactory.java @@ -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; } -} \ No newline at end of file +}