lux.query
Class TermPQuery
java.lang.Object
lux.query.ParseableQuery
lux.query.TermPQuery
- Direct Known Subclasses:
- SpanTermPQuery
public class TermPQuery
- extends ParseableQuery
Parseable analogue of TermQuery.
|
Constructor Summary |
TermPQuery(org.apache.lucene.index.Term t)
|
TermPQuery(org.apache.lucene.index.Term t,
float boost)
|
FIELD_ATTR_NAME
public static final LiteralExpression FIELD_ATTR_NAME
TERM_QUERY_QNAME
public static final QName TERM_QUERY_QNAME
TermPQuery
public TermPQuery(org.apache.lucene.index.Term t,
float boost)
TermPQuery
public TermPQuery(org.apache.lucene.index.Term t)
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.