org.activemath.omdocjdom.index.queries
Class PhraseAMIndexQuery
java.lang.Object
org.activemath.omdocjdom.index.queries.AbstractAMIndexQuery
org.activemath.omdocjdom.index.queries.PhraseAMIndexQuery
- All Implemented Interfaces:
- IndexConstants
- Direct Known Subclasses:
- OmobjAMIndexQuery
public class PhraseAMIndexQuery
- extends AbstractAMIndexQuery
A query for an exact sequence of tokens.
PhraseAMIndexQuery
public PhraseAMIndexQuery(List languages,
String text)
createAnalyzer
protected org.apache.lucene.analysis.Analyzer createAnalyzer()
createQueryForVariation
protected org.apache.lucene.search.Query createQueryForVariation(String field,
String lang)
- Description copied from class:
AbstractAMIndexQuery
- Creates a query for this field and language.
- Specified by:
createQueryForVariation in class AbstractAMIndexQuery
- Parameters:
field - the field name this should apply tolang - the language (added to the field name if non-null)
- Returns:
- the query that will be composed with others with varying fields and languages
createTokenStream
protected org.apache.lucene.analysis.TokenStream createTokenStream(String field,
String lang)
- Can be subclassed for more elaborate content than a plain string.
- Returns:
- the normal token stream of the analyzer with field "text-" + field....
superToString
protected String superToString()
toString
public String toString()
- Overrides:
toString in class AbstractAMIndexQuery