org.activemath.omdocjdom.index.queries
Class AMIndexQueryList

java.lang.Object
  extended by org.activemath.omdocjdom.index.queries.AbstractAMIndexQuery
      extended by org.activemath.omdocjdom.index.queries.AMIndexQueryList
All Implemented Interfaces:
IndexConstants

public class AMIndexQueryList
extends AbstractAMIndexQuery


Field Summary
 List clauses
           
 
Fields inherited from class org.activemath.omdocjdom.index.queries.AbstractAMIndexQuery
DEBUG, log
 
Fields inherited from interface org.activemath.omdocjdom.index.IndexConstants
FIELDNAME_id, FIELDNAME_metadata, FIELDNAME_type, LANG_ALL, LANG_UNIVERSAL, SUBFIELDNAME_field, SUBFIELDNAME_learningContext
 
Constructor Summary
AMIndexQueryList()
           
 
Method Summary
 void add(AbstractAMIndexQuery q, org.apache.lucene.search.BooleanClause.Occur occurrenceReq)
           
 org.apache.lucene.search.Query asLuceneQuery()
           
protected  org.apache.lucene.search.Query createQueryForVariation(String field, String lang)
          Creates a query for this field and language.
 void setTargetCompetencies(Collection<String> coll)
           
 
Methods inherited from class org.activemath.omdocjdom.index.queries.AbstractAMIndexQuery
feedVariationAlongLanguages, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

clauses

public List clauses
Constructor Detail

AMIndexQueryList

public AMIndexQueryList()
Method Detail

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 to
lang - the language (added to the field name if non-null)
Returns:
the query that will be composed with others with varying fields and languages

setTargetCompetencies

public void setTargetCompetencies(Collection<String> coll)

add

public void add(AbstractAMIndexQuery q,
                org.apache.lucene.search.BooleanClause.Occur occurrenceReq)

asLuceneQuery

public org.apache.lucene.search.Query asLuceneQuery()
Overrides:
asLuceneQuery in class AbstractAMIndexQuery