public class

TermFilter

extends Filter
java.lang.Object
   ↳ org.apache.lucene.search.Filter
     ↳ com.atlassian.confluence.search.lucene.filter.TermFilter

Class Overview

Lucene filter that finds documents that match a particular org.apache.lucene.index.Term.

Summary

Public Constructors
TermFilter(Term term)
Create a lucene filter that finds documents that match a particular org.apache.lucene.index.Term.
Public Methods
BitSet bits(IndexReader reader)
Term getTerm()
[Expand]
Inherited Methods
From class org.apache.lucene.search.Filter
From class java.lang.Object

Public Constructors

public TermFilter (Term term)

Create a lucene filter that finds documents that match a particular org.apache.lucene.index.Term.

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

Public Methods

public BitSet bits (IndexReader reader)

Throws
IOException

public Term getTerm ()