Class LimitTokenPositionFilterFactory
- java.lang.Object
-
- org.apache.lucene.analysis.util.AbstractAnalysisFactory
-
- org.apache.lucene.analysis.util.TokenFilterFactory
-
- org.apache.lucene.analysis.miscellaneous.LimitTokenPositionFilterFactory
-
public class LimitTokenPositionFilterFactory extends TokenFilterFactory
Factory forLimitTokenPositionFilter.<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
consumeAllTokensproperty is optional and defaults tofalse. SeeLimitTokenPositionFilterfor an explanation of its use.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONSUME_ALL_TOKENS_KEYstatic java.lang.StringMAX_TOKEN_POSITION_KEY-
Fields inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
LUCENE_MATCH_VERSION_PARAM
-
-
Constructor Summary
Constructors Constructor Description LimitTokenPositionFilterFactory(java.util.Map<java.lang.String,java.lang.String> args)Creates a new LimitTokenPositionFilterFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenStreamcreate(TokenStream input)Transform the specified input TokenStream-
Methods inherited from class org.apache.lucene.analysis.util.TokenFilterFactory
availableTokenFilters, forName, lookupClass, reloadTokenFilters
-
Methods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
get, get, get, get, get, getChar, getClassArg, getLuceneMatchVersion, getOriginalArgs, getSet, isExplicitLuceneMatchVersion, require, require, require, requireChar, setExplicitLuceneMatchVersion
-
-
-
-
Field Detail
-
MAX_TOKEN_POSITION_KEY
public static final java.lang.String MAX_TOKEN_POSITION_KEY
- See Also:
- Constant Field Values
-
CONSUME_ALL_TOKENS_KEY
public static final java.lang.String CONSUME_ALL_TOKENS_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public TokenStream create(TokenStream input)
Description copied from class:TokenFilterFactoryTransform the specified input TokenStream- Specified by:
createin classTokenFilterFactory
-
-