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

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

Lucene filter that finds documents that match a particular Term.


Constructor Summary
TermFilter(org.apache.lucene.index.Term term)
          Create a lucene filter that finds documents that match a particular Term.
 
Method Summary
 org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context, org.apache.lucene.util.Bits acceptDocs)
           
 org.apache.lucene.index.Term getTerm()
           
 
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 getDocIdSet(org.apache.lucene.index.AtomicReaderContext, org.apache.lucene.util.Bits)
Method Detail

getTerm

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

getDocIdSet

public org.apache.lucene.search.DocIdSet getDocIdSet(org.apache.lucene.index.AtomicReaderContext context,
                                                     org.apache.lucene.util.Bits acceptDocs)
                                              throws java.io.IOException
Specified by:
getDocIdSet in class org.apache.lucene.search.Filter
Throws:
java.io.IOException


Copyright © 2003-2014 Atlassian. All Rights Reserved.