org.activemath.omdocjdom.index.queries
Class IdAMIndexQuery
java.lang.Object
org.activemath.omdocjdom.index.queries.AbstractAMIndexQuery
org.activemath.omdocjdom.index.queries.IdAMIndexQuery
- All Implemented Interfaces:
- IndexConstants
public class IdAMIndexQuery
- extends AbstractAMIndexQuery
A query that's somewhat bizarre and is non-joinable to other queries,
it searches for, simply, an ID.
Moreover, this query does not use the index!
IdAMIndexQuery
public IdAMIndexQuery(String id)
setId
public void setId(String id)
getId
public String getId()
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
asLuceneQuery
public org.apache.lucene.search.Query asLuceneQuery()
- Overrides:
asLuceneQuery in class AbstractAMIndexQuery