Class TopSuggestDocs
java.lang.Object
org.apache.lucene.search.TopDocs
org.apache.lucene.search.suggest.document.TopSuggestDocs
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTopSuggestDocs
(TotalHits totalHits, TopSuggestDocs.SuggestScoreDoc[] scoreDocs) -
Method Summary
Modifier and TypeMethodDescriptionstatic TopSuggestDocs
merge
(int topN, TopSuggestDocs[] shardHits) Returns a new TopSuggestDocs, containing topN results across the provided TopSuggestDocs, sorting by score.ReturnsTopSuggestDocs.SuggestScoreDoc
s for this instance
-
Field Details
-
EMPTY
Singleton for emptyTopSuggestDocs
-
-
Constructor Details
-
TopSuggestDocs
-
-
Method Details
-
scoreLookupDocs
ReturnsTopSuggestDocs.SuggestScoreDoc
s for this instance -
merge
Returns a new TopSuggestDocs, containing topN results across the provided TopSuggestDocs, sorting by score. EachTopSuggestDocs
instance must be sorted. Analogous toTopDocs.merge(int, org.apache.lucene.search.TopDocs[])
forTopSuggestDocs
NOTE: assumes every
shardHit
is already sorted by score
-