Class LimitTokenPositionFilterFactory
Factory for LimitTokenPositionFilter.
<fieldType name="text_limit_pos" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LimitTokenPositionFilterFactory" maxTokenPosition="3" consumeAllTokens="false" />
</analyzer>
</fieldType>
The consumeAllTokens property is optional and defaults to false
.
See LimitTokenPositionFilter for an explanation of its use.
Inherited Members
Namespace: Lucene.Net.Analysis.Miscellaneous
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public class LimitTokenPositionFilterFactory : TokenFilterFactory
Constructors
LimitTokenPositionFilterFactory(IDictionary<string, string>)
Creates a new LimitTokenPositionFilterFactory
Declaration
public LimitTokenPositionFilterFactory(IDictionary<string, string> args)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<string, string> | args |
Fields
CONSUME_ALL_TOKENS_KEY
Factory for LimitTokenPositionFilter.
<fieldType name="text_limit_pos" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LimitTokenPositionFilterFactory" maxTokenPosition="3" consumeAllTokens="false" />
</analyzer>
</fieldType>
The consumeAllTokens property is optional and defaults to false
.
See LimitTokenPositionFilter for an explanation of its use.
Declaration
public const string CONSUME_ALL_TOKENS_KEY = "consumeAllTokens"
Field Value
Type | Description |
---|---|
string |
MAX_TOKEN_POSITION_KEY
Factory for LimitTokenPositionFilter.
<fieldType name="text_limit_pos" class="solr.TextField" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LimitTokenPositionFilterFactory" maxTokenPosition="3" consumeAllTokens="false" />
</analyzer>
</fieldType>
The consumeAllTokens property is optional and defaults to false
.
See LimitTokenPositionFilter for an explanation of its use.
Declaration
public const string MAX_TOKEN_POSITION_KEY = "maxTokenPosition"
Field Value
Type | Description |
---|---|
string |
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 |