public class AllAnalyzer
- extends Analyzer
The All Analyzer is a specific analyzer that is used to wrap the analyzer passed when adding
a document. It will gather all the tokens that the actual analyzer generates for fields that
are included in All and allow to get them using
createAllTokenStream() (which will
be used to create the all field with).
Un tokenized fields (which will not go through the analysis process) are identied when this
analyzed is constructed and are added to the all field if they are supposed to be included.
There are two options with the untokenized fields, either add them as is (un tokenized), or
analyze them just for the all properties.
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public AllAnalyzer(Analyzer analyzer,
public TokenStream tokenStream(String fieldName,
- Specified by:
tokenStream in class
public TokenStream reusableTokenStream(String fieldName,
reusableTokenStream in class
public int getPositionIncrementGap(String fieldName)
getPositionIncrementGap in class
public TokenStream createAllTokenStream()
Copyright (c) 2004-2008 The Compass Project.