Class HyphenationCompoundWordTokenFilterFactory
Factory for HyphenationCompoundWordTokenFilter.
This factory accepts the following parameters:-
(mandatory): path to the FOP xml hyphenation pattern. See http://offo.sourceforge.net/hyphenation/.hyphenator
-
(optional): encoding of the xml hyphenation file. defaults to UTF-8.encoding
-
(optional): dictionary of words. defaults to no dictionary.dictionary
-
(optional): minimal word length that gets decomposed. defaults to 5.minWordSize
-
(optional): minimum length of subwords. defaults to 2.minSubwordSize
-
(optional): maximum length of subwords. defaults to 15.maxSubwordSize
-
(optional): if true, adds only the longest matching subword to the stream. defaults to false.onlyLongestMatch
<fieldType name="text_hyphncomp" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.HyphenationCompoundWordTokenFilterFactory" hyphenator="hyphenator.xml" encoding="UTF-8"
dictionary="dictionary.txt" minWordSize="5" minSubwordSize="2" maxSubwordSize="15" onlyLongestMatch="false"/>
</analyzer>
</fieldType>
Inheritance
HyphenationCompoundWordTokenFilterFactory
Implements
Inherited Members
Namespace: Lucene.Net.Analysis.Compound
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class HyphenationCompoundWordTokenFilterFactory : TokenFilterFactory, IResourceLoaderAware
Constructors
HyphenationCompoundWordTokenFilterFactory(IDictionary<string, string>)
Creates a new HyphenationCompoundWordTokenFilterFactory
Declaration
public HyphenationCompoundWordTokenFilterFactory(IDictionary<string, string> args)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | args |
See Also
Methods
Create(TokenStream)
Transform the specified input Lucene.Net.Analysis.TokenStream
Declaration
public override TokenStream Create(TokenStream input)
Parameters
Type | Name | Description |
---|---|---|
TokenStream | input |
Returns
Type | Description |
---|---|
TokenStream |
Overrides
See Also
Inform(IResourceLoader)
Initializes this component with the provided IResourceLoader (used for loading types, embedded resources, files, etc).
Declaration
public virtual void Inform(IResourceLoader loader)
Parameters
Type | Name | Description |
---|---|---|
IResourceLoader | loader |