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
System.Object
HyphenationCompoundWordTokenFilterFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
[Serializable]
public class HyphenationCompoundWordTokenFilterFactory : TokenFilterFactory, IResourceLoaderAware
Constructors
Name | Description |
---|---|
HyphenationCompoundWordTokenFilterFactory(IDictionary<String, String>) | Creates a new HyphenationCompoundWordTokenFilterFactory |
Methods
Name | Description |
---|---|
Create(TokenStream) | |
Inform(IResourceLoader) |