Uses of Class
org.apache.lucene.search.TopFieldDocs
Packages that use TopFieldDocs
Package
Description
The logical representation of a
Document for indexing and
searching.Code to search indices.
-
Uses of TopFieldDocs in org.apache.lucene.document
Methods in org.apache.lucene.document that return TopFieldDocsModifier and TypeMethodDescriptionstatic TopFieldDocsLatLonPoint.nearest(IndexSearcher searcher, String field, double latitude, double longitude, int n) Finds thennearest indexed points to the provided point, according to Haversine distance. -
Uses of TopFieldDocs in org.apache.lucene.search
Methods in org.apache.lucene.search that return TopFieldDocsModifier and TypeMethodDescriptionstatic TopFieldDocsTopDocs.merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits) Same asTopDocs.merge(Sort, int, TopFieldDocs[])but also ignores the topstarttop docs.static TopFieldDocsTopDocs.merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits, Comparator<ScoreDoc> tieBreaker) Pass in a custom tie breaker for ordering resultsstatic TopFieldDocsTopDocs.merge(Sort sort, int topN, TopFieldDocs[] shardHits) Returns a new TopFieldDocs, containing topN results across the provided TopFieldDocs, sorting by the specifiedSort.TopFieldCollectorManager.reduce(Collection<TopFieldCollector> collectors) Search implementation with arbitrary sorting.Search implementation with arbitrary sorting, plus control over whether hit scores and max score should be computed.IndexSearcher.searchAfter(ScoreDoc after, Query query, int numHits, Sort sort, boolean doDocScores) Finds the topnhits forquerywhere all results are after a previous result (after), allowing control over whether hit scores and max score should be computed.TopFieldCollector.topDocs()Methods in org.apache.lucene.search with parameters of type TopFieldDocsModifier and TypeMethodDescriptionstatic TopFieldDocsTopDocs.merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits) Same asTopDocs.merge(Sort, int, TopFieldDocs[])but also ignores the topstarttop docs.static TopFieldDocsTopDocs.merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits, Comparator<ScoreDoc> tieBreaker) Pass in a custom tie breaker for ordering resultsstatic TopFieldDocsTopDocs.merge(Sort sort, int topN, TopFieldDocs[] shardHits) Returns a new TopFieldDocs, containing topN results across the provided TopFieldDocs, sorting by the specifiedSort.