Save This Page
Home » lucene-2.3.2-src » org.apache » lucene » search » [javadoc | source]
org.apache.lucene.search
public class: BooleanFilter [javadoc | source]
java.lang.Object
   org.apache.lucene.search.Filter
      org.apache.lucene.search.BooleanFilter

All Implemented Interfaces:
    Serializable

A container Filter that allows Boolean composition of Filters. Filters are allocated into one of three logical constructs; SHOULD, MUST NOT, MUST The results Filter BitSet is constructed as follows: SHOULD Filters are OR'd together The resulting Filter is NOT'd with the NOT Filters The resulting Filter is AND'd with the MUST Filters
Field Summary
 ArrayList shouldFilters     
 ArrayList notFilters     
 ArrayList mustFilters     
Method from org.apache.lucene.search.BooleanFilter Summary:
add,   bits,   equals,   hashCode,   toString
Methods from org.apache.lucene.search.Filter:
bits
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.lucene.search.BooleanFilter Detail:
 public  void add(FilterClause filterClause) 
    Adds a new FilterClause to the Boolean Filter container
 public BitSet bits(IndexReader reader) throws IOException 
    Returns the a BitSet representing the Boolean composition of the filters that have been added.
 public boolean equals(Object obj) 
 public int hashCode() 
 public String toString() 
    Prints a user-readable version of this query.