Class ShingleFilterFactory
Factory for ShingleFilter.
<fieldType name="text_shingle" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.ShingleFilterFactory" minShingleSize="2" maxShingleSize="2"
outputUnigrams="true" outputUnigramsIfNoShingles="false" tokenSeparator=" " fillerToken="_"/>
</analyzer>
</fieldType>
Inherited Members
Namespace: Lucene.Net.Analysis.Shingle
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class ShingleFilterFactory : TokenFilterFactory
Constructors
ShingleFilterFactory(IDictionary<string, string>)
Creates a new ShingleFilterFactory
Declaration
public ShingleFilterFactory(IDictionary<string, string> args)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | args |
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 |