Constructor DictionaryCompoundWordTokenFilter
DictionaryCompoundWordTokenFilter(LuceneVersion, TokenStream, CharArraySet)
Creates a new DictionaryCompoundWordTokenFilter
Declaration
public DictionaryCompoundWordTokenFilter(LuceneVersion matchVersion, TokenStream input, CharArraySet dictionary)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | Lucene version to enable correct Unicode 4.0 behavior in the dictionaries if Version > 3.0. See CompoundWordTokenFilterBase for details. |
TokenStream | input | the TokenStream to process |
CharArraySet | dictionary | the word dictionary to match against. |
DictionaryCompoundWordTokenFilter(LuceneVersion, TokenStream, CharArraySet, Int32, Int32, Int32, Boolean)
Creates a new DictionaryCompoundWordTokenFilter
Declaration
public DictionaryCompoundWordTokenFilter(LuceneVersion matchVersion, TokenStream input, CharArraySet dictionary, int minWordSize, int minSubwordSize, int maxSubwordSize, bool onlyLongestMatch)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | Lucene version to enable correct Unicode 4.0 behavior in the dictionaries if Version > 3.0. See CompoundWordTokenFilterBase for details. |
TokenStream | input | the TokenStream to process |
CharArraySet | dictionary | the word dictionary to match against. |
System.Int32 | minWordSize | only words longer than this get processed |
System.Int32 | minSubwordSize | only subwords longer than this get to the output stream |
System.Int32 | maxSubwordSize | only subwords shorter than this get to the output stream |
System.Boolean | onlyLongestMatch | Add only the longest matching subword to the stream |