public class TopSuggestDocs
extends TopDocs
org.apache.lucene.search.TopDocs wrapper with
an additional CharSequence key per org.apache.lucene.search.ScoreDoc| Modifier and Type | Class and Description |
|---|---|
static class |
TopSuggestDocs.SuggestScoreDoc
org.apache.lucene.search.ScoreDoc with an
additional CharSequence key |
| Modifier and Type | Field and Description |
|---|---|
static TopSuggestDocs |
EMPTY
Singleton for empty
TopSuggestDocs |
| Constructor and Description |
|---|
TopSuggestDocs(TotalHits totalHits,
TopSuggestDocs.SuggestScoreDoc[] scoreDocs)
org.apache.lucene.search.TopDocs wrapper with
TopSuggestDocs.SuggestScoreDoc
instead of org.apache.lucene.search.ScoreDoc |
| Modifier and Type | Method and Description |
|---|---|
static TopSuggestDocs |
merge(int topN,
TopSuggestDocs[] shardHits)
Returns a new TopSuggestDocs, containing topN results across
the provided TopSuggestDocs, sorting by score.
|
TopSuggestDocs.SuggestScoreDoc[] |
scoreLookupDocs()
Returns
TopSuggestDocs.SuggestScoreDocs
for this instance |
public static final TopSuggestDocs EMPTY
TopSuggestDocspublic TopSuggestDocs(TotalHits totalHits,
TopSuggestDocs.SuggestScoreDoc[] scoreDocs)
org.apache.lucene.search.TopDocs wrapper with
TopSuggestDocs.SuggestScoreDoc
instead of org.apache.lucene.search.ScoreDocpublic TopSuggestDocs.SuggestScoreDoc[] scoreLookupDocs()
TopSuggestDocs.SuggestScoreDocs
for this instancepublic static TopSuggestDocs merge(int topN, TopSuggestDocs[] shardHits)
TopSuggestDocs
instance must be sorted.
Analogous to org.apache.lucene.search.TopDocs#merge(int, org.apache.lucene.search.TopDocs[])
for TopSuggestDocs
NOTE: assumes every shardHit is already sorted by scoreData In Motion GmbH all rights reserved