Allow custom type_table to be passed to Lucene's WordDelimiterFilter() constructor, instead of just the default

This commit is contained in:
Jacob Evans 2012-08-06 17:06:19 -07:00 committed by Shay Banon
parent 195e586fd8
commit 3925c0b4e1
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class WordDelimiterTokenFilterFactory extends AbstractTokenFilterFactory
@Override @Override
public TokenStream create(TokenStream tokenStream) { public TokenStream create(TokenStream tokenStream) {
return new WordDelimiterFilter(tokenStream, return new WordDelimiterFilter(tokenStream,
WordDelimiterIterator.DEFAULT_WORD_DELIM_TABLE, charTypeTable,
generateWordParts ? 1 : 0, generateWordParts ? 1 : 0,
generateNumberParts ? 1 : 0, generateNumberParts ? 1 : 0,
catenateWords ? 1 : 0, catenateWords ? 1 : 0,