org.apache.lucene.search
Class PrefixFilter
java.lang.Object
org.apache.lucene.search.Filter
org.apache.lucene.search.PrefixFilter
- All Implemented Interfaces:
- Serializable
public class PrefixFilter
- extends Filter
- Version:
- $Id$
- See Also:
- Serialized Form
prefix
protected final Term prefix
PrefixFilter
public PrefixFilter(Term prefix)
getPrefix
public Term getPrefix()
bits
public BitSet bits(IndexReader reader)
throws IOException
- Deprecated. Use
getDocIdSet(IndexReader)
instead.
- Overrides:
bits
in class Filter
- Returns:
- A BitSet with true for documents which should be permitted in
search results, and false for those that should not.
- Throws:
IOException
getDocIdSet
public DocIdSet getDocIdSet(IndexReader reader)
throws IOException
- Overrides:
getDocIdSet
in class Filter
- Returns:
- a DocIdSet that provides the documents which should be
permitted or prohibited in search results.
- Throws:
IOException
- See Also:
DocIdBitSet
toString
public String toString()
- Prints a user-readable version of this query.
- Overrides:
toString
in class Object
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.