Class TruncateTokenFilterFactory
Factory for TruncateTokenFilter. The following type is recommended for "diacritics-insensitive search" for Turkish.
<fieldType name="text_tr_ascii_f5" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.ApostropheFilterFactory"/>
<filter class="solr.TurkishLowerCaseFilterFactory"/>
<filter class="solr.ASCIIFoldingFilterFactory" preserveOriginal="true"/>
<filter class="solr.KeywordRepeatFilterFactory"/>
<filter class="solr.TruncateTokenFilterFactory" prefixLength="5"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
</fieldType>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Analysis.Miscellaneous
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class TruncateTokenFilterFactory : TokenFilterFactory
Constructors
| Improve this Doc View SourceTruncateTokenFilterFactory(IDictionary<String, String>)
Creates a new TruncateTokenFilterFactory
Declaration
public TruncateTokenFilterFactory(IDictionary<string, string> args)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | args |
Fields
| Improve this Doc View SourcePREFIX_LENGTH_KEY
Declaration
public const string PREFIX_LENGTH_KEY = "prefixLength"
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCreate(TokenStream)
Declaration
public override TokenStream Create(TokenStream input)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Analysis.TokenStream | input |
Returns
Type | Description |
---|---|
Lucene.Net.Analysis.TokenStream |