com.atlassian.confluence.search.lucene.filter
Class TermFilter

java.lang.Object
  extended by org.apache.lucene.search.Filter
      extended by com.atlassian.confluence.search.lucene.filter.TermFilter
All Implemented Interfaces:
java.io.Serializable

public class TermFilter
extends org.apache.lucene.search.Filter

Lucene filter that finds documents that match a particular Term.

See Also:
Serialized Form

Constructor Summary
TermFilter(org.apache.lucene.index.Term term)
          Create a lucene filter that finds documents that match a particular Term.
 
Method Summary
 java.util.BitSet bits(org.apache.lucene.index.IndexReader reader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermFilter

public TermFilter(org.apache.lucene.index.Term term)
Create a lucene filter that finds documents that match a particular Term.

Parameters:
term - The Term to find. If null, an empty BitSet will be returned from bits(org.apache.lucene.index.IndexReader)
Method Detail

bits

public java.util.BitSet bits(org.apache.lucene.index.IndexReader reader)
                      throws java.io.IOException
Specified by:
bits in class org.apache.lucene.search.Filter
Throws:
java.io.IOException


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.