Uses of Class
org.apache.lucene.search.TopDocs
-
-
Uses of TopDocs in org.apache.lucene.search
Subclasses of TopDocs in org.apache.lucene.search Modifier and Type Class Description classTopFieldDocsRepresents hits returned byIndexSearcher.search(Query,int,Sort).Fields in org.apache.lucene.search declared as TopDocs Modifier and Type Field Description protected static TopDocsTopDocsCollector. EMPTY_TOPDOCSThis is used in case topDocs() is called with illegal parameters, or there simply aren't (enough) results.Methods in org.apache.lucene.search that return TopDocs Modifier and Type Method Description static TopDocsTopDocs. merge(int start, int topN, TopDocs[] shardHits, boolean setShardIndex)Same asmerge(int, TopDocs[])but also ignores the topstarttop docs.static TopDocsTopDocs. merge(int topN, TopDocs[] shardHits)Returns a new TopDocs, containing topN results across the provided TopDocs, sorting by score.protected TopDocsDiversifiedTopDocsCollector. newTopDocs(ScoreDoc[] results, int start)protected TopDocsTopDocsCollector. newTopDocs(ScoreDoc[] results, int start)Returns aTopDocsinstance containing the given results.protected TopDocsTopFieldCollector. newTopDocs(ScoreDoc[] results, int start)protected TopDocsTopScoreDocCollector. newTopDocs(ScoreDoc[] results, int start)TopDocsQueryRescorer. rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)static TopDocsQueryRescorer. rescore(IndexSearcher searcher, TopDocs topDocs, Query query, double weight, int topN)Sugar API, calling {#rescore} using a simple linear combination of firstPassScore + weight * secondPassScoreabstract TopDocsRescorer. rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)Rescore an initial first-passTopDocs.TopDocsIndexSearcher. search(Query query, int n)Finds the topnhits forquery.TopDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, int numHits)Finds the topnhits forquerywhere all results are after a previous result (after).TopDocsIndexSearcher. searchAfter(ScoreDoc after, Query query, int n, Sort sort)Finds the topnhits forquerywhere all results are after a previous result (after).TopDocsTopDocsCollector. topDocs()Returns the top docs that were collected by this collector.TopDocsTopDocsCollector. topDocs(int start)Returns the documents in the range [start ..TopDocsTopDocsCollector. topDocs(int start, int howMany)Returns the documents in the range [start ..Methods in org.apache.lucene.search that return types with arguments of type TopDocs Modifier and Type Method Description static CollectorManager<TopScoreDocCollector,TopDocs>TopScoreDocCollector. createSharedManager(int numHits, FieldDoc after, int totalHitsThreshold)Create a CollectorManager which uses a shared hit counter to maintain number of hits and a sharedMaxScoreAccumulatorto propagate the minimum score accross segmentsMethods in org.apache.lucene.search with parameters of type TopDocs Modifier and Type Method Description static TopDocsTopDocs. merge(int start, int topN, TopDocs[] shardHits, boolean setShardIndex)Same asmerge(int, TopDocs[])but also ignores the topstarttop docs.static TopDocsTopDocs. merge(int topN, TopDocs[] shardHits)Returns a new TopDocs, containing topN results across the provided TopDocs, sorting by score.TopDocsQueryRescorer. rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)static TopDocsQueryRescorer. rescore(IndexSearcher searcher, TopDocs topDocs, Query query, double weight, int topN)Sugar API, calling {#rescore} using a simple linear combination of firstPassScore + weight * secondPassScoreabstract TopDocsRescorer. rescore(IndexSearcher searcher, TopDocs firstPassTopDocs, int topN)Rescore an initial first-passTopDocs. -
Uses of TopDocs in org.apache.lucene.search.grouping
Subclasses of TopDocs in org.apache.lucene.search.grouping Modifier and Type Class Description classCollapseTopFieldDocsRepresents hits returned byCollapsingTopDocsCollector.getTopDocs(). -
Uses of TopDocs in org.apache.lucene.search.suggest.document
Subclasses of TopDocs in org.apache.lucene.search.suggest.document Modifier and Type Class Description classTopSuggestDocs -
Uses of TopDocs in org.apache.lucene.search.uhighlight
Methods in org.apache.lucene.search.uhighlight with parameters of type TopDocs Modifier and Type Method Description String[]UnifiedHighlighter. highlight(String field, Query query, TopDocs topDocs)Highlights the top passages from a single field.String[]UnifiedHighlighter. highlight(String field, Query query, TopDocs topDocs, int maxPassages)Highlights the top-N passages from a single field.Map<String,String[]>UnifiedHighlighter. highlightFields(String[] fields, Query query, TopDocs topDocs)Highlights the top passages from multiple fields.Map<String,String[]>UnifiedHighlighter. highlightFields(String[] fields, Query query, TopDocs topDocs, int[] maxPassages)Highlights the top-N passages from multiple fields. -
Uses of TopDocs in org.elasticsearch.common.lucene
Fields in org.elasticsearch.common.lucene declared as TopDocs Modifier and Type Field Description static TopDocsLucene. EMPTY_TOP_DOCS -
Uses of TopDocs in org.elasticsearch.common.lucene.search
Fields in org.elasticsearch.common.lucene.search declared as TopDocs Modifier and Type Field Description TopDocsTopDocsAndMaxScore. topDocsConstructors in org.elasticsearch.common.lucene.search with parameters of type TopDocs Constructor Description TopDocsAndMaxScore(TopDocs topDocs, float maxScore) -
Uses of TopDocs in org.elasticsearch.search.rescore
Methods in org.elasticsearch.search.rescore that return TopDocs Modifier and Type Method Description TopDocsQueryRescorer. rescore(TopDocs topDocs, IndexSearcher searcher, RescoreContext rescoreContext)TopDocsRescorer. rescore(TopDocs topDocs, IndexSearcher searcher, RescoreContext rescoreContext)Modifies the result of the previously executed search (TopDocs) in place based on the givenRescoreContext.Methods in org.elasticsearch.search.rescore with parameters of type TopDocs Modifier and Type Method Description TopDocsQueryRescorer. rescore(TopDocs topDocs, IndexSearcher searcher, RescoreContext rescoreContext)TopDocsRescorer. rescore(TopDocs topDocs, IndexSearcher searcher, RescoreContext rescoreContext)Modifies the result of the previously executed search (TopDocs) in place based on the givenRescoreContext.
-