Class LimitedPrefixSearchHitCollector
java.lang.Object
org.apache.lucene.search.SimpleCollector
com.atlassian.jira.issue.statistics.util.LimitedPrefixSearchHitCollector
- All Implemented Interfaces:
org.apache.lucene.search.Collector
,org.apache.lucene.search.LeafCollector
public class LimitedPrefixSearchHitCollector
extends org.apache.lucene.search.SimpleCollector
A field hit collector to retrieve all the terms matching a certain prefix provided.
- Since:
- 10.2
-
Constructor Summary
ConstructorsConstructorDescriptionLimitedPrefixSearchHitCollector
(String fieldId, String prefix, Set<String> exclude, int limit) -
Method Summary
Modifier and TypeMethodDescriptionvoid
collect
(int docId) protected void
doSetNextReader
(org.apache.lucene.index.LeafReaderContext context) boolean
Methods inherited from class org.apache.lucene.search.SimpleCollector
getLeafCollector, setScorer
-
Constructor Details
-
LimitedPrefixSearchHitCollector
-
-
Method Details
-
getResults
-
collect
- Specified by:
collect
in interfaceorg.apache.lucene.search.LeafCollector
- Specified by:
collect
in classorg.apache.lucene.search.SimpleCollector
- Throws:
IOException
-
doSetNextReader
protected void doSetNextReader(org.apache.lucene.index.LeafReaderContext context) throws IOException - Overrides:
doSetNextReader
in classorg.apache.lucene.search.SimpleCollector
- Throws:
IOException
-
needsScores
public boolean needsScores()
-