org.apache.lucene.search

Class PrefixFilter

Implemented Interfaces:
Serializable

public class PrefixFilter
extends Filter

Version:
$Id$
Author:
yonik
See Also:
Serialized Form

Field Summary

protected Term
prefix

Constructor Summary

PrefixFilter(Term prefix)

Method Summary

BitSet
bits(IndexReader reader)
Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.
Term
getPrefix()
String
toString()
Prints a user-readable version of this query.

Methods inherited from class org.apache.lucene.search.Filter

bits

Field Details

prefix

protected final Term prefix

Constructor Details

PrefixFilter

public PrefixFilter(Term prefix)

Method Details

bits

public BitSet bits(IndexReader reader)
            throws IOException
Returns a BitSet with true for documents which should be permitted in search results, and false for those that should not.
Overrides:
bits in interface Filter

getPrefix

public Term getPrefix()

toString

public String toString()
Prints a user-readable version of this query.

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.