lux.query
Class ParseableQuery
java.lang.Object
lux.query.ParseableQuery
- Direct Known Subclasses:
- BooleanPQuery, MatchAllPQuery, NodeTextQuery, SpanMatchAll, SpanNearPQuery, TermPQuery
public abstract class ParseableQuery
- extends Object
ParseableQueries represent Lucene Queries in an abstract form that can be rendered as an XML tree
for later parsing. This is used by Lux to embed generated queries within an XQuery expression.
ParseableQuery
public ParseableQuery()
toXmlNode
public abstract ElementConstructor toXmlNode(String field,
IndexConfiguration config)
- 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 abstract String toQueryString(String field,
IndexConfiguration config)
- 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
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2013. All Rights Reserved.