|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.queryParser.core.nodes.QueryNodeImpl
org.apache.lucene.queryParser.core.nodes.BoostQueryNode
public class BoostQueryNode
A BoostQueryNode boosts the QueryNode tree which is under this node.
So, it must only and always have one child.
The boost value may vary from 0.0 to 1.0.
| Field Summary |
|---|
| Fields inherited from class org.apache.lucene.queryParser.core.nodes.QueryNodeImpl |
|---|
PLAINTEXT_FIELD_NAME, toQueryStringIgnoreFields |
| Constructor Summary | |
|---|---|
BoostQueryNode(QueryNode query,
float value)
Constructs a boost node |
|
| Method Summary | |
|---|---|
QueryNode |
cloneTree()
Recursive clone the QueryNode tree The tags are not copied to the new tree when you call the cloneTree() method |
QueryNode |
getChild()
Returns the single child which this node boosts. |
float |
getValue()
Returns the boost value. |
CharSequence |
toQueryString(EscapeQuerySyntax escapeSyntaxParser)
convert to a query string understood by the query parser |
String |
toString()
Every implementation of this class should return pseudo xml like this: For FieldQueryNode: |
| Methods inherited from class org.apache.lucene.queryParser.core.nodes.QueryNodeImpl |
|---|
add, add, allocate, clone, containsTag, getChildren, getParent, getTag, getTags, isDefaultField, isLeaf, isRoot, set, setLeaf, setTag, unsetTag |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BoostQueryNode(QueryNode query,
float value)
throws QueryNodeException
query - the query to be boostedvalue - the boost value, it may vary from 0.0 to 1.0
QueryNodeException| Method Detail |
|---|
public QueryNode getChild()
public float getValue()
public String toString()
QueryNodeImpl
toString in interface QueryNodetoString in class QueryNodeImplQueryNode.toString()public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser)
QueryNode
public QueryNode cloneTree()
throws CloneNotSupportedException
QueryNode
cloneTree in interface QueryNodecloneTree in class QueryNodeImplCloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||