public class OneDimensionalDocIssueHitCollector extends AbstractOneDimensionalHitCollector
Constructor and Description |
---|
OneDimensionalDocIssueHitCollector(String luceneGroupField,
StatsGroup statsGroup,
org.apache.lucene.index.IndexReader searcher,
IssueFactory issueFactory,
FieldVisibilityManager fieldVisibilityManager,
ReaderCache readerCache,
FieldManager fieldManager) |
Modifier and Type | Method and Description |
---|---|
protected void |
collectIrrelevant(int docId)
Implement this if you would like to do something when the hit collector has encountered a docId that contains an
irrelevant data match
|
protected void |
collectWithTerms(int docId,
JiraBytesRef[] terms)
Implement this if you would like to do something with the hit we have found.
|
collect, doSetNextIndexReader, doSetNextReader, getHitCount, getIrrelevantCount, needsScores
public OneDimensionalDocIssueHitCollector(String luceneGroupField, StatsGroup statsGroup, org.apache.lucene.index.IndexReader searcher, IssueFactory issueFactory, FieldVisibilityManager fieldVisibilityManager, ReaderCache readerCache, FieldManager fieldManager)
protected void collectIrrelevant(int docId)
AbstractOneDimensionalHitCollector
collectIrrelevant
in class AbstractOneDimensionalHitCollector
docId
- the match we have found. This is an index into the overall directory reader.protected void collectWithTerms(int docId, JiraBytesRef[] terms)
AbstractOneDimensionalHitCollector
collectWithTerms
in class AbstractOneDimensionalHitCollector
docId
- the doc id of the hit. This is an index into the overall directory reader.terms
- the terms for the fieldId for this document, pre-calculated so you may not need to call getDocumentCopyright © 2002-2019 Atlassian. All Rights Reserved.