org.apache.solr.analysis
Class TrieTokenizerFactory
java.lang.Object
org.apache.solr.analysis.BaseTokenizerFactory
org.apache.solr.analysis.TrieTokenizerFactory
- All Implemented Interfaces:
- TokenizerFactory
public class TrieTokenizerFactory
- extends BaseTokenizerFactory
Tokenizer for trie fields. It uses NumericTokenStream to create multiple trie encoded string per number.
Each string created by this tokenizer for a given number differs from the previous by the given precisionStep.
For query time token streams that only contain the highest precision term, use 32/64 as precisionStep.
Refer to NumericRangeQuery
for more details.
- Since:
- solr 1.4
- Version:
- $Id: TrieTokenizerFactory.java 812768 2009-09-09 04:41:33Z hossman $
- See Also:
NumericRangeQuery
,
TrieField
Method Summary |
org.apache.solr.analysis.TrieTokenizer |
create(Reader input)
Creates a TokenStream of the specified input |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
precisionStep
protected final int precisionStep
type
protected final TrieField.TrieTypes type
TrieTokenizerFactory
public TrieTokenizerFactory(TrieField.TrieTypes type,
int precisionStep)
create
public org.apache.solr.analysis.TrieTokenizer create(Reader input)
- Description copied from interface:
TokenizerFactory
- Creates a TokenStream of the specified input
Copyright © 2011 Apache Software Foundation. All Rights Reserved.