Uses of Class
org.apache.lucene.search.TopFieldDocs
-
Packages that use TopFieldDocs Package Description org.apache.lucene.document The logical representation of aDocumentfor 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 TopFieldDocsFloatPointNearestNeighbor. 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 TopFieldDocsTopDocs. merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits, boolean setShardIndex)Same asTopDocs.merge(Sort, int, TopFieldDocs[])but also ignores the topstarttop docs.static TopFieldDocsTopDocs. merge(Sort sort, int topN, TopFieldDocs[] shardHits)Returns a new TopFieldDocs, containing topN results across the provided TopFieldDocs, sorting by the specifiedSort.static TopFieldDocsLatLonPointPrototypeQueries. nearest(IndexSearcher searcher, java.lang.String field, double latitude, double longitude, int n)Finds thennearest indexed points to the provided point, according to Haversine distance.TopFieldDocsIndexSearcher. search(Query query, int n, Sort sort)Search implementation with arbitrary sorting.TopFieldDocsIndexSearcher. 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 TopFieldDocsIndexSearcher. searchAfter(FieldDoc after, Query query, int numHits, Sort sort, boolean doDocScores)TopFieldDocsIndexSearcher. 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.TopFieldDocsTopFieldCollector. 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 sharedMaxScoreAccumulatorto 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 TopFieldDocsTopDocs. merge(Sort sort, int start, int topN, TopFieldDocs[] shardHits, boolean setShardIndex)Same asTopDocs.merge(Sort, int, TopFieldDocs[])but also ignores the topstarttop docs.static TopFieldDocsTopDocs. 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)
-