Overload List

  NameDescription
Public methodSearch(Query) Obsolete.
Returns the documents matching
CopyC#
query
.
Public methodSearch(Query, Collector)
Lower-level search API.

{@link Collector#Collect(int)} is called for every matching document.

Applications should only use this if they need all of the matching documents. The high-level search API ({@link Searcher#Search(Query, int)} ) is usually more efficient, as it skips non-high-scoring hits.

Note: The

CopyC#
score
passed to this method is a raw score. In other words, the score will not necessarily be a float whose value is between 0 and 1.
Public methodSearch(Query, Filter) Obsolete.
Returns the documents matching
CopyC#
query
and
CopyC#
filter
.
Public methodSearch(Query, HitCollector) Obsolete.
Lower-level search API.

{@link HitCollector#Collect(int,float)} is called for every matching document.

Applications should only use this if they need all of the matching documents. The high-level search API ({@link Searcher#Search(Query)}) is usually more efficient, as it skips non-high-scoring hits.

Note: The

CopyC#
score
passed to this method is a raw score. In other words, the score will not necessarily be a float whose value is between 0 and 1.
Public methodSearch(Query, Sort) Obsolete.
Returns documents matching
CopyC#
query
sorted by
CopyC#
sort
.
Public methodSearch(Query, Int32)
Finds the top
CopyC#
n
hits for
CopyC#
query
.
Public methodSearch(Query, Filter, Collector)
Lower-level search API.

{@link Collector#Collect(int)} is called for every matching document.
Collector-based access to remote indexes is discouraged.

Applications should only use this if they need all of the matching documents. The high-level search API ({@link Searcher#Search(Query, Filter, int)}) is usually more efficient, as it skips non-high-scoring hits.

Public methodSearch(Query, Filter, HitCollector) Obsolete.
Lower-level search API.

{@link HitCollector#Collect(int,float)} is called for every matching document.
HitCollector-based access to remote indexes is discouraged.

Applications should only use this if they need all of the matching documents. The high-level search API ({@link Searcher#Search(Query, Filter, int)}) is usually more efficient, as it skips non-high-scoring hits.

Public methodSearch(Query, Filter, Sort) Obsolete.
Returns documents matching
CopyC#
query
and
CopyC#
filter
, sorted by
CopyC#
sort
.
Public methodSearch(Query, Filter, Int32)
Finds the top
CopyC#
n
hits for
CopyC#
query
, applying
CopyC#
filter
if non-null.
Public methodSearch(Weight, Filter, Collector)
Public methodSearch(Weight, Filter, HitCollector) Obsolete.
Public methodSearch(Weight, Filter, Int32)
Public methodSearch(Query, Filter, Int32, Sort)
Search implementation with arbitrary sorting. Finds the top
CopyC#
n
hits for
CopyC#
query
, applying
CopyC#
filter
if non-null, and sorting the hits by the criteria in
CopyC#
sort
.

NOTE: this does not compute scores by default; use {@link IndexSearcher#setDefaultFieldSortScoring} to enable scoring.

Public methodSearch(Weight, Filter, Int32, Sort)

See Also