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
Namespace: Lucene.Net.Analysis.NGram
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class NGramTokenizerFactory : TokenizerFactory
  Constructors
| Improve this Doc View SourceNGramTokenizerFactory(IDictionary<String, String>)
Creates a new NGramTokenizerFactory
Declaration
public NGramTokenizerFactory(IDictionary<string, string> args)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IDictionary<System.String, System.String> | args | 
Methods
| Improve this Doc View SourceCreate(AttributeSource.AttributeFactory, TextReader)
Creates the TokenStream of n-grams from the given 
Declaration
public override Tokenizer Create(AttributeSource.AttributeFactory factory, TextReader input)
  Parameters
| Type | Name | Description | 
|---|---|---|
| AttributeSource.AttributeFactory | factory | |
| TextReader | input | 
Returns
| Type | Description | 
|---|---|
| Tokenizer |