Uses of Class
org.apache.lucene.search.TopFieldDocs
-
Packages that use TopFieldDocs Package Description org.apache.lucene.document The logical representation of aDocument
for indexing and searching.org.apache.lucene.search Code to search indices.org.apache.lucene.search.suggest.analyzing Analyzer based autosuggest. -
-
Uses of TopFieldDocs in org.apache.lucene.document
Methods in org.apache.lucene.document that return TopFieldDocs Modifier and Type Method Description static TopFieldDocs
FloatPointNearestNeighbor. nearest(IndexSearcher searcher, java.lang.String field, int topN, float... origin)
-
Uses of TopFieldDocs in org.apache.lucene.search
Methods in org.apache.lucene.search that return TopFieldDocs Modifier and Type Method Description static TopFieldDocs
TopDocs. merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits, boolean setShardIndex)
Same asTopDocs.merge(Sort, int, TopFieldDocs[])
but also ignores the topstart
top docs.static TopFieldDocs
TopDocs. merge(Sort sort, int topN, TopFieldDocs[] shardHits)
Returns a new TopFieldDocs, containing topN results across the provided TopFieldDocs, sorting by the specifiedSort
.static TopFieldDocs
LatLonPointPrototypeQueries. nearest(IndexSearcher searcher, java.lang.String field, double latitude, double longitude, int n)
Finds then
nearest indexed points to the provided point, according to Haversine distance.TopFieldDocs
IndexSearcher. search(Query query, int n, Sort sort)
Search implementation with arbitrary sorting.TopFieldDocs
IndexSearcher. search(Query query, int n, Sort sort, boolean doDocScores)
Search implementation with arbitrary sorting, plus control over whether hit scores and max score should be computed.private TopFieldDocs
IndexSearcher. searchAfter(FieldDoc after, Query query, int numHits, Sort sort, boolean doDocScores)
TopFieldDocs
IndexSearcher. searchAfter(ScoreDoc after, Query query, int numHits, Sort sort, boolean doDocScores)
Finds the topn
hits forquery
where all results are after a previous result (after
), allowing control over whether hit scores and max score should be computed.TopFieldDocs
TopFieldCollector. topDocs()
Methods in org.apache.lucene.search that return types with arguments of type TopFieldDocs Modifier and Type Method Description static CollectorManager<TopFieldCollector,TopFieldDocs>
TopFieldCollector. createSharedManager(Sort sort, int numHits, FieldDoc after, int totalHitsThreshold)
Create a CollectorManager which uses a shared hit counter to maintain number of hits and a sharedMaxScoreAccumulator
to propagate the minimum score accross segments if the primary sort is by relevancy.Methods in org.apache.lucene.search with parameters of type TopFieldDocs Modifier and Type Method Description static TopFieldDocs
TopDocs. merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits, boolean setShardIndex)
Same asTopDocs.merge(Sort, int, TopFieldDocs[])
but also ignores the topstart
top docs.static TopFieldDocs
TopDocs. merge(Sort sort, int topN, TopFieldDocs[] shardHits)
Returns a new TopFieldDocs, containing topN results across the provided TopFieldDocs, sorting by the specifiedSort
. -
Uses of TopFieldDocs in org.apache.lucene.search.suggest.analyzing
Methods in org.apache.lucene.search.suggest.analyzing with parameters of type TopFieldDocs Modifier and Type Method Description protected java.util.List<Lookup.LookupResult>
AnalyzingInfixSuggester. createResults(IndexSearcher searcher, TopFieldDocs hits, int num, java.lang.CharSequence charSequence, boolean doHighlight, java.util.Set<java.lang.String> matchedTokens, java.lang.String prefixToken)
Create the results based on the search hits.protected java.util.List<Lookup.LookupResult>
BlendedInfixSuggester. createResults(IndexSearcher searcher, TopFieldDocs hits, int num, java.lang.CharSequence key, boolean doHighlight, java.util.Set<java.lang.String> matchedTokens, java.lang.String prefixToken)
-