lux.query
Class NodeTextQuery

java.lang.Object
  extended by lux.query.ParseableQuery
      extended by lux.query.NodeTextQuery

public class NodeTextQuery
extends ParseableQuery

A parseable query that generates a QNameTextQuery.


Constructor Summary
NodeTextQuery(org.apache.lucene.index.Term t)
           
NodeTextQuery(org.apache.lucene.index.Term t, String qName)
           
NodeTextQuery(org.apache.lucene.index.Term t, String qName, float boost)
           
 
Method Summary
 String toQueryString(String field, IndexConfiguration config)
           
 ElementConstructor toXmlNode(String field, IndexConfiguration config)
           
protected  ElementConstructor toXmlNode(String field, QName elementName)
           
 
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

NodeTextQuery

public NodeTextQuery(org.apache.lucene.index.Term t,
                     String qName,
                     float boost)

NodeTextQuery

public NodeTextQuery(org.apache.lucene.index.Term t,
                     String qName)

NodeTextQuery

public NodeTextQuery(org.apache.lucene.index.Term t)
Method Detail

toXmlNode

public ElementConstructor toXmlNode(String field,
                                    IndexConfiguration config)
Specified by:
toXmlNode in class ParseableQuery
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

toXmlNode

protected ElementConstructor toXmlNode(String field,
                                       QName elementName)

toQueryString

public String toQueryString(String field,
                            IndexConfiguration config)
Specified by:
toQueryString in class ParseableQuery
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
Throws:
IllegalStateException - if a qName was provided, but the field is not one of the known QName-based fields (lux_elt_text or lux_att_text)


Copyright © 2013. All Rights Reserved.