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:
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
 BitSet bits(org.apache.lucene.index.IndexReader reader)
           
 org.apache.lucene.index.Term getTerm()
           
 
Methods inherited from class org.apache.lucene.search.Filter
getDocIdSet
 
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 BitSet bits(org.apache.lucene.index.IndexReader reader)
            throws IOException
Overrides:
bits in class org.apache.lucene.search.Filter
Throws:
IOException

getTerm

public org.apache.lucene.index.Term getTerm()


Copyright © 2003-2013 Atlassian. All Rights Reserved.