Overload List

  NameDescription
Public methodSearch(Query) Obsolete.
Returns the documents matching
CopyC#
query
.
(Inherited from Searcher.)
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.
(Inherited from Searcher.)
Public methodSearch(Query, Filter) Obsolete.
Returns the documents matching
CopyC#
query
and
CopyC#
filter
.
(Inherited from Searcher.)
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.
(Inherited from Searcher.)
Public methodSearch(Query, Sort) Obsolete.
Returns documents matching
CopyC#
query
sorted by
CopyC#
sort
.
(Inherited from Searcher.)
Public methodSearch(Query, Int32)
Finds the top
CopyC#
n
hits for
CopyC#
query
.
(Inherited from Searcher.)
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.

(Inherited from Searcher.)
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.

(Inherited from Searcher.)
Public methodSearch(Query, Filter, Sort) Obsolete.
Returns documents matching
CopyC#
query
and
CopyC#
filter
, sorted by
CopyC#
sort
.
(Inherited from Searcher.)
Public methodSearch(Query, Filter, Int32)
Finds the top
CopyC#
n
hits for
CopyC#
query
, applying
CopyC#
filter
if non-null.
(Inherited from Searcher.)
Public methodSearch(Weight, Filter, Collector) (Overrides Searcher..::..Search(Weight, Filter, Collector).)
Public methodSearch(Weight, Filter, Int32) (Overrides Searcher..::..Search(Weight, Filter, Int32).)
Public methodSearch(Weight, Filter, HitCollector) Obsolete. (Inherited from Searcher.)
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.

(Inherited from Searcher.)
Public methodSearch(Weight, Filter, Int32, Sort) (Overrides Searcher..::..Search(Weight, Filter, Int32, Sort).)
Public methodSearch(Weight, Filter, Int32, Sort, Boolean)
Just like {@link #Search(Weight, Filter, int, Sort)}, but you choose whether or not the fields in the returned {@link FieldDoc} instances should be set by specifying fillFields.

NOTE: this does not compute scores by default. If you need scores, create a {@link TopFieldCollector} instance by calling {@link TopFieldCollector#create} and then pass that to {@link #Search(Weight, Filter, Collector)}.

See Also