From 3925c0b4e11625955c0af3092df0d0d2e9348117 Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Mon, 6 Aug 2012 17:06:19 -0700 Subject: [PATCH] Allow custom type_table to be passed to Lucene's WordDelimiterFilter() constructor, instead of just the default --- .../index/analysis/WordDelimiterTokenFilterFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/index/analysis/WordDelimiterTokenFilterFactory.java b/src/main/java/org/elasticsearch/index/analysis/WordDelimiterTokenFilterFactory.java index a2545f5e0e9..1a5cef1c837 100644 --- a/src/main/java/org/elasticsearch/index/analysis/WordDelimiterTokenFilterFactory.java +++ b/src/main/java/org/elasticsearch/index/analysis/WordDelimiterTokenFilterFactory.java @@ -92,7 +92,7 @@ public class WordDelimiterTokenFilterFactory extends AbstractTokenFilterFactory @Override public TokenStream create(TokenStream tokenStream) { return new WordDelimiterFilter(tokenStream, - WordDelimiterIterator.DEFAULT_WORD_DELIM_TABLE, + charTypeTable, generateWordParts ? 1 : 0, generateNumberParts ? 1 : 0, catenateWords ? 1 : 0,