Constructor HyphenationCompoundWordTokenFilter
HyphenationCompoundWordTokenFilter(LuceneVersion, TokenStream, HyphenationTree, CharArraySet)
Creates a new HyphenationCompoundWordTokenFilter instance.
Declaration
public HyphenationCompoundWordTokenFilter(LuceneVersion matchVersion, TokenStream input, HyphenationTree hyphenator, 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 |
HyphenationTree | hyphenator | the hyphenation pattern tree to use for hyphenation |
CharArraySet | dictionary | the word dictionary to match against. |
HyphenationCompoundWordTokenFilter(LuceneVersion, TokenStream, HyphenationTree, CharArraySet, Int32, Int32, Int32, Boolean)
Creates a new HyphenationCompoundWordTokenFilter instance.
Declaration
public HyphenationCompoundWordTokenFilter(LuceneVersion matchVersion, TokenStream input, HyphenationTree hyphenator, 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 |
HyphenationTree | hyphenator | the hyphenation pattern tree to use for hyphenation |
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 |
HyphenationCompoundWordTokenFilter(LuceneVersion, TokenStream, HyphenationTree, Int32, Int32, Int32)
Create a HyphenationCompoundWordTokenFilter with no dictionary.
Declaration
public HyphenationCompoundWordTokenFilter(LuceneVersion matchVersion, TokenStream input, HyphenationTree hyphenator, int minWordSize, int minSubwordSize, int maxSubwordSize)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | |
TokenStream | input | |
HyphenationTree | hyphenator | |
System.Int32 | minWordSize | |
System.Int32 | minSubwordSize | |
System.Int32 | maxSubwordSize |
HyphenationCompoundWordTokenFilter(LuceneVersion, TokenStream, HyphenationTree)
Create a HyphenationCompoundWordTokenFilter with no dictionary.
Calls HyphenationCompoundWordTokenFilter(LuceneVersion, TokenStream, HyphenationTree, Int32, Int32, Int32)
Declaration
public HyphenationCompoundWordTokenFilter(LuceneVersion matchVersion, TokenStream input, HyphenationTree hyphenator)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | |
TokenStream | input | |
HyphenationTree | hyphenator |