lux.query
Class SpanTermPQuery

java.lang.Object
  extended by lux.query.ParseableQuery
      extended by lux.query.TermPQuery
          extended by lux.query.SpanTermPQuery

public class SpanTermPQuery
extends TermPQuery

Extends TermPQuery for use in contexts where a SpanTerm is required


Field Summary
static QName REGEXP_TERM_QNAME
           
static QName SPAN_TERM_QNAME
           
 
Fields inherited from class lux.query.TermPQuery
FIELD_ATTR_NAME, TERM_QUERY_QNAME
 
Constructor Summary
SpanTermPQuery(org.apache.lucene.index.Term t)
           
 
Method Summary
 ElementConstructor toXmlNode(String field, IndexConfiguration config)
           
 
Methods inherited from class lux.query.TermPQuery
getBoost, getTerm, toQueryString, toXmlNode
 
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
 

Field Detail

SPAN_TERM_QNAME

public static final QName SPAN_TERM_QNAME

REGEXP_TERM_QNAME

public static final QName REGEXP_TERM_QNAME
Constructor Detail

SpanTermPQuery

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

toXmlNode

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


Copyright © 2013. All Rights Reserved.