Class NGramTokenizerFactory
Factory for NGramTokenizer.
<fieldType name="text_ngrm" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.NGramTokenizerFactory" minGramSize="1" maxGramSize="2"/>
</analyzer>
</fieldType>
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 NGramTokenizerFactory : TokenizerFactory
Constructors
Name | Description |
---|---|
NGramTokenizerFactory(IDictionary<String, String>) | Creates a new NGramTokenizerFactory |
Methods
Name | Description |
---|---|
Create(AttributeSource.AttributeFactory, TextReader) | Creates the TokenStream of n-grams from the given System.IO.TextReader and AttributeSource.AttributeFactory. |