org.apache.lucene.search
Class PrefixFilter
- java.lang.Object
-
- org.apache.lucene.search.Filter
-
- org.apache.lucene.search.PrefixFilter
-
- All Implemented Interfaces:
- java.io.Serializable
public class PrefixFilter extends Filter
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description PrefixFilter(Term prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.BitSetbits(IndexReader reader)Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.TermgetPrefix()java.lang.StringtoString()Prints a user-readable version of this query.
-
-
-
Constructor Detail
-
PrefixFilter
public PrefixFilter(Term prefix)
-
-
Method Detail
-
getPrefix
public Term getPrefix()
-
bits
public java.util.BitSet bits(IndexReader reader) throws java.io.IOException
Description copied from class:FilterReturns a BitSet with true for documents which should be permitted in search results, and false for those that should not.
-
toString
public java.lang.String toString()
Prints a user-readable version of this query.- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG