lux.query
Class ParseableQuery

java.lang.Object
  extended by 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.


Constructor Summary
ParseableQuery()
           
 
Method Summary
abstract  String toQueryString(String field, IndexConfiguration config)
           
 String toString()
           
abstract  ElementConstructor toXmlNode(String field, IndexConfiguration config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseableQuery

public ParseableQuery()
Method Detail

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.