Browse files

Allow custom type_table to be passed to Lucene's WordDelimiterFilter(…

…) constructor, instead of just the default
  • Loading branch information...
1 parent 195e586 commit 3925c0b4e11625955c0af3092df0d0d2e9348117 @jacobevans jacobevans committed with kimchy Aug 7, 2012
View
2 src/main/java/org/elasticsearch/index/analysis/WordDelimiterTokenFilterFactory.java
@@ -92,7 +92,7 @@ public WordDelimiterTokenFilterFactory(Index index, @IndexSettings Settings inde
@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,

0 comments on commit 3925c0b

Please sign in to comment.