The ParallelMultiSearcher type exposes the following members.

Constructors

  NameDescription
Public methodParallelMultiSearcher
Creates a searchable which searches searchables.

Methods

  NameDescription
Public methodClose (Inherited from MultiSearcher.)
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodCreateWeight
Create weight in multiple index scenario. Distributed query processing is done in the following steps: 1. rewrite query 2. extract necessary terms 3. collect dfs for these terms from the Searchables 4. create query weight using aggregate dfs. 5. distribute that weight to Searchables 6. merge results Steps 1-4 are done here, 5+6 in the search() methods
(Inherited from MultiSearcher.)
Public methodDispose
.NET
(Inherited from MultiSearcher.)
Public methodDoc(Int32) (Inherited from MultiSearcher.)
Public methodDoc(Int32, FieldSelector) (Inherited from MultiSearcher.)
Public methodDocFreq
TODO: parallelize this one too
(Overrides MultiSearcher..::..DocFreq(Term).)
Public methodDocFreqs (Inherited from Searcher.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExplain(Query, Int32)
Returns an Explanation that describes how
CopyC#
doc
scored against
CopyC#
query
.

This is intended to be used in developing Similarity implementations, and, for good performance, should not be displayed with every hit. Computing an explanation is as expensive as executing the query over the entire index.

(Inherited from Searcher.)
Public methodExplain(Weight, Int32) (Inherited from MultiSearcher.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetSearchables
Return the array of {@link Searchable}s this searches.
(Inherited from MultiSearcher.)
Public methodGetSimilarity
Expert: Return the Similarity implementation used by this Searcher.

This defaults to the current value of {@link Similarity#GetDefault()}.

(Inherited from Searcher.)
Protected methodGetStarts (Inherited from MultiSearcher.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodMaxDoc (Inherited from MultiSearcher.)
Protected methodMemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodRewrite (Overrides MultiSearcher..::..Rewrite(Query).)
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)
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)}) is usually more efficient, as it skips non-high-scoring hits.

(Overrides MultiSearcher..::..Search(Weight, Filter, Collector).)
Public methodSearch(Weight, Filter, Int32)
A search implementation which spans a new thread for each Searchable, waits for each search to complete and merge the results back together.
(Overrides MultiSearcher..::..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)
A search implementation allowing sorting which spans a new thread for each Searchable, waits for each search to complete and merges the results back together.
(Overrides MultiSearcher..::..Search(Weight, Filter, Int32, Sort).)
Public methodSetSimilarity
Expert: Set the Similarity implementation used by this Searcher.
(Inherited from Searcher.)
Public methodSubDoc
Returns the document number of document
CopyC#
n
within its sub-index.
(Inherited from MultiSearcher.)
Public methodSubSearcher
Returns index of the searcher for document
CopyC#
n
in the array used to construct this searcher.
(Inherited from MultiSearcher.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

See Also