org.apache.solr.analysis
Class TrieTokenizerFactory

java.lang.Object
  extended by org.apache.lucene.analysis.util.AbstractAnalysisFactory
      extended by org.apache.lucene.analysis.util.TokenizerFactory
          extended by org.apache.solr.analysis.TrieTokenizerFactory

public class TrieTokenizerFactory
extends TokenizerFactory

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
See Also:
NumericRangeQuery, TrieField

Field Summary
protected  int precisionStep
           
protected  TrieField.TrieTypes type
           
 
Fields inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
args, luceneMatchVersion
 
Constructor Summary
TrieTokenizerFactory(TrieField.TrieTypes type, int precisionStep)
           
 
Method Summary
 org.apache.solr.analysis.TrieTokenizer create(Reader input)
           
 
Methods inherited from class org.apache.lucene.analysis.util.AbstractAnalysisFactory
assureMatchVersion, getArgs, getBoolean, getBoolean, getInt, getInt, getInt, getLuceneMatchVersion, getPattern, getSnowballWordSet, getWordSet, init, setLuceneMatchVersion, splitFileNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

precisionStep

protected final int precisionStep

type

protected final TrieField.TrieTypes type
Constructor Detail

TrieTokenizerFactory

public TrieTokenizerFactory(TrieField.TrieTypes type,
                            int precisionStep)
Method Detail

create

public org.apache.solr.analysis.TrieTokenizer create(Reader input)
Specified by:
create in class TokenizerFactory


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.