lux.query
Class SpanBooleanPQuery

java.lang.Object
  extended by lux.query.ParseableQuery
      extended by lux.query.BooleanPQuery
          extended by lux.query.SpanBooleanPQuery

public class SpanBooleanPQuery
extends BooleanPQuery

simplified BooleanQuery model for use with Spans - all clauses have the same occur value, which must be AND or OR, not NOT.


Nested Class Summary
 
Nested classes/interfaces inherited from class lux.query.BooleanPQuery
BooleanPQuery.Clause
 
Field Summary
 
Fields inherited from class lux.query.BooleanPQuery
BOOLEAN_QUERY_QNAME, CLAUSE_QNAME, MUST_NOT_OCCUR_ATT, MUST_OCCUR_ATT, OCCURS_ATT_NAME, SHOULD_OCCUR_ATT
 
Constructor Summary
SpanBooleanPQuery(org.apache.lucene.search.BooleanClause.Occur occur, ParseableQuery... queries)
           
SpanBooleanPQuery(BooleanPQuery.Clause... clauses)
           
 
Method Summary
 String toQueryString(String field, IndexConfiguration config)
           
 ElementConstructor toXmlNode(String field, IndexConfiguration config)
           
 
Methods inherited from class lux.query.BooleanPQuery
getClauses, getOccur
 
Methods inherited from class lux.query.ParseableQuery
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpanBooleanPQuery

public SpanBooleanPQuery(org.apache.lucene.search.BooleanClause.Occur occur,
                         ParseableQuery... queries)

SpanBooleanPQuery

public SpanBooleanPQuery(BooleanPQuery.Clause... clauses)
Method Detail

toXmlNode

public ElementConstructor toXmlNode(String field,
                                    IndexConfiguration config)
Overrides:
toXmlNode in class BooleanPQuery
Parameters:
field - the prevailing field in the query's surrounding context.
config - the index configuration
Returns:
an xml object representation of the query, in a format suitable for parsing by one the Lucene XML Query Parser

toQueryString

public String toQueryString(String field,
                            IndexConfiguration config)
Overrides:
toQueryString in class BooleanPQuery
Parameters:
field - the prevailing field in the query's surrounding context.
config - the index configuration
Returns:
a String representation of the query, in the Surround Query Parser dialect


Copyright © 2013. All Rights Reserved.