public abstract class

DocumentHitCollector

extends Collector
java.lang.Object
   ↳ org.apache.lucene.search.Collector
     ↳ com.atlassian.jira.issue.statistics.util.DocumentHitCollector
Known Direct Subclasses

This class is deprecated.
{@since v6.1} Only return the fields you seek. See FieldableDocumentHitCollector

Class Overview

A simple Lucene Collector that visits the entire Document for each result in the search.

JIRA Issue Documents are quite large, so this is probably rather inefficient. Consider using FieldableDocumentHitCollector instead if you only want a subset of each Document.

Summary

Fields
protected final IndexSearcher searcher
Protected Constructors
DocumentHitCollector(IndexSearcher searcher)
Public Methods
boolean acceptsDocsOutOfOrder()
abstract void collect(Document d)
void collect(int i)
void setNextReader(IndexReader reader, int docBase)
void setScorer(Scorer scorer)
[Expand]
Inherited Methods
From class org.apache.lucene.search.Collector
From class java.lang.Object

Fields

protected final IndexSearcher searcher

Protected Constructors

protected DocumentHitCollector (IndexSearcher searcher)

Public Methods

public boolean acceptsDocsOutOfOrder ()

public abstract void collect (Document d)

public void collect (int i)

public void setNextReader (IndexReader reader, int docBase)

Throws
IOException

public void setScorer (Scorer scorer)

Throws
IOException