public class NodeQuery extends AbstractNodeQuery
mapper
Modifier and Type | Method and Description |
---|---|
NodeQuery |
setBoost(float boost)
Sets the boost for this query.
|
NodeQuery |
setLevel(int level)
Sets the node level constraint.
|
NodeQuery |
setRange(int lowerBound,
int upperBound)
Sets the node range constraint.
|
org.apache.lucene.search.Query |
toQuery(boolean proxy)
Convert the constructed query into a
Query . |
getLevel, getLowerBound, getUpperBound, hasLevel, hasRange
toString
public NodeQuery setLevel(int level)
AbstractNodeQuery
setLevel
in class AbstractNodeQuery
org.sindice.siren.search.node.NodeQuery#setLevelConstraint(int)}
public NodeQuery setRange(int lowerBound, int upperBound)
AbstractNodeQuery
setRange
in class AbstractNodeQuery
org.sindice.siren.search.node.NodeQuery#setNodeConstraint(int, int)}
public NodeQuery setBoost(float boost)
AbstractQuery
setBoost
in class AbstractQuery
Query#setBoost(float)}
public org.apache.lucene.search.Query toQuery(boolean proxy) throws org.apache.lucene.queryparser.flexible.core.QueryNodeException
AbstractQuery
Query
.toQuery
in class AbstractNodeQuery
proxy
- Should the query be wrapped into a LuceneProxyNodeQuery
?org.apache.lucene.queryparser.flexible.core.QueryNodeException
Copyright © 2014. All rights reserved.