public abstract class AbstractQuery extends Object
Modifier and Type | Field and Description |
---|---|
protected org.codehaus.jackson.map.ObjectMapper |
mapper |
Constructor and Description |
---|
AbstractQuery(org.codehaus.jackson.map.ObjectMapper mapper) |
Modifier and Type | Method and Description |
---|---|
AbstractQuery |
setBoost(float boost)
Sets the boost for this query.
|
abstract org.apache.lucene.search.Query |
toQuery(boolean proxy)
Convert the constructed query into a
Query . |
String |
toString()
Return a JSON representation of the constructed query.
|
public abstract org.apache.lucene.search.Query toQuery(boolean proxy) throws org.apache.lucene.queryparser.flexible.core.QueryNodeException
Query
.proxy
- Should the query be wrapped into a LuceneProxyNodeQuery
?org.apache.lucene.queryparser.flexible.core.QueryNodeException
public String toString()
The JSON representation is compatible with the JsonQueryParser
.
toString
in class Object
IllegalArgumentException
- If the created query object cannot be
converted to JSON.public AbstractQuery setBoost(float boost)
Query#setBoost(float)}
Copyright © 2014. All rights reserved.