lux.query
Class TermPQuery

java.lang.Object
  extended by lux.query.ParseableQuery
      extended by lux.query.TermPQuery
Direct Known Subclasses:
SpanTermPQuery

public class TermPQuery
extends ParseableQuery

Parseable analogue of TermQuery.


Field Summary
static LiteralExpression FIELD_ATTR_NAME
           
static QName TERM_QUERY_QNAME
           
 
Constructor Summary
TermPQuery(org.apache.lucene.index.Term t)
           
TermPQuery(org.apache.lucene.index.Term t, float boost)
           
 
Method Summary
 float getBoost()
           
 org.apache.lucene.index.Term getTerm()
           
 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
 

Field Detail

FIELD_ATTR_NAME

public static final LiteralExpression FIELD_ATTR_NAME

TERM_QUERY_QNAME

public static final QName TERM_QUERY_QNAME
Constructor Detail

TermPQuery

public TermPQuery(org.apache.lucene.index.Term t,
                  float boost)

TermPQuery

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

getTerm

public org.apache.lucene.index.Term getTerm()

getBoost

public float getBoost()

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


Copyright © 2013. All Rights Reserved.