Save This Page
Home » lucene-3.0.1-src » org.apache.lucene.queryParser.core.nodes » [javadoc | source]
org.apache.lucene.queryParser.core.nodes
public class: ModifierQueryNode [javadoc | source]
java.lang.Object
   org.apache.lucene.queryParser.core.nodes.QueryNodeImpl
      org.apache.lucene.queryParser.core.nodes.ModifierQueryNode

All Implemented Interfaces:
    Cloneable, QueryNode

Direct Known Subclasses:
    BooleanModifierNode

A ModifierQueryNode indicates the modifier value (+,-,?,NONE) for each term on the query string. For example "+t1 -t2 t3" will have a tree of:
<BooleanQueryNode> <ModifierQueryNode modifier="MOD_REQ"> <t1/> </ModifierQueryNode> <ModifierQueryNode modifier="MOD_NOT"> <t2/> </ModifierQueryNode> <t3/> </BooleanQueryNode>
Nested Class Summary:
public enum class  ModifierQueryNode.Modifier   
Fields inherited from org.apache.lucene.queryParser.core.nodes.QueryNodeImpl:
PLAINTEXT_FIELD_NAME,  toQueryStringIgnoreFields
Constructor:
 public ModifierQueryNode(QueryNode query,
    Modifier mod) 
    Used to store the modifier value on the original query string
    Parameters:
    query - - QueryNode subtree
    mod - - Modifier Value
Method from org.apache.lucene.queryParser.core.nodes.ModifierQueryNode Summary:
cloneTree,   getChild,   getModifier,   setChild,   toQueryString,   toString
Methods from org.apache.lucene.queryParser.core.nodes.QueryNodeImpl:
add,   add,   allocate,   clone,   cloneTree,   containsTag,   getChildren,   getParent,   getTag,   getTags,   isDefaultField,   isLeaf,   isRoot,   set,   setLeaf,   setTag,   toString,   unsetTag
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.queryParser.core.nodes.ModifierQueryNode Detail:
 public QueryNode cloneTree() throws CloneNotSupportedException 
 public QueryNode getChild() 
 public Modifier getModifier() 
 public  void setChild(QueryNode child) 
 public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) 
 public String toString()