Home » lucene-3.0.1-src » org.apache.lucene.queryParser.core.nodes » [javadoc | source]
public interface: FieldableNode [javadoc | source]

All Implemented Interfaces:

All Known Implementing Classes:
    FuzzyQueryNode, RangeQueryNode, ParametricRangeQueryNode, TokenizedPhraseQueryNode, QuotedFieldQueryNode, ParametricQueryNode, PhraseSlopQueryNode, MultiPhraseQueryNode, PrefixWildcardQueryNode, FieldQueryNode, WildcardQueryNode, SlopQueryNode

A query node implements FieldableNode interface to indicate that its children and itself are associated to a specific field. If it has any children which also implements this interface, it must ensure the children are associated to the same field.
Method from org.apache.lucene.queryParser.core.nodes.FieldableNode Summary:
getField,   setField
Method from org.apache.lucene.queryParser.core.nodes.FieldableNode Detail:
 public CharSequence getField()
    Returns the field associated to the node and every node under it.
 public  void setField(CharSequence fieldName)
    Associates the node to a field.