search
Finds the top n hits for query.
Throws
If a query would exceed IndexSearcher.getMaxClauseCount clauses.
Search implementation with arbitrary sorting, plus control over whether hit scores and max score should be computed. Finds the top n hits for query, and sorting the hits by the criteria in sort. If doDocScores is true then the score of each hit will be computed and returned. If doMaxScore is true then the maximum score over all collected hits will be computed.
Throws
If a query would exceed IndexSearcher.getMaxClauseCount clauses.
Search implementation with arbitrary sorting.
Return
The top docs, sorted according to the supplied Sort instance
Parameters
Throws
if there is a low-level I/O error
Lower-level search API. Search all leaves using the given CollectorManager. In contrast to .search, this method will use the searcher's Executor in order to parallelize execution of the collection on the configured .getSlices.
See also
Deprecated
This method is being deprecated in favor of {@link IndexSearcher#search(Query, * CollectorManager)} due to its support for concurrency in IndexSearcher
Lower-level search API.
LeafCollector.collect is called for every matching document.
Throws
If a query would exceed IndexSearcher.getMaxClauseCount clauses.