From 0fdfa5a58153611eb26f8cb61447a379f7d69a27 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Fri, 27 Apr 2012 13:26:18 +0300 Subject: [PATCH] provide version in the english filter --- .../elasticsearch/index/analysis/StemmerTokenFilterFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/index/analysis/StemmerTokenFilterFactory.java b/src/main/java/org/elasticsearch/index/analysis/StemmerTokenFilterFactory.java index a54d8ff1d4b..5870119bed1 100644 --- a/src/main/java/org/elasticsearch/index/analysis/StemmerTokenFilterFactory.java +++ b/src/main/java/org/elasticsearch/index/analysis/StemmerTokenFilterFactory.java @@ -126,7 +126,7 @@ public class StemmerTokenFilterFactory extends AbstractTokenFilterFactory { } else if ("minimal_english".equalsIgnoreCase(language) || "minimalEnglish".equalsIgnoreCase(language)) { return new EnglishMinimalStemFilter(tokenStream); } else if ("possessive_english".equalsIgnoreCase(language) || "possessiveEnglish".equalsIgnoreCase(language)) { - return new EnglishPossessiveFilter(tokenStream); + return new EnglishPossessiveFilter(version, tokenStream); } else if ("light_finish".equalsIgnoreCase(language) || "lightFinish".equalsIgnoreCase(language)) { return new FinnishLightStemFilter(tokenStream); } else if ("light_french".equalsIgnoreCase(language) || "lightFrench".equalsIgnoreCase(language)) {