lux.query
Class SpanBooleanPQuery
java.lang.Object
lux.query.ParseableQuery
lux.query.BooleanPQuery
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.
SpanBooleanPQuery
public SpanBooleanPQuery(org.apache.lucene.search.BooleanClause.Occur occur,
ParseableQuery... queries)
SpanBooleanPQuery
public SpanBooleanPQuery(BooleanPQuery.Clause... clauses)
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.