Implements search over a single IndexReader.

Applications usually need only call the inherited {@link #Search(Query)} or {@link #Search(Query,Filter)} methods. For performance reasons it is recommended to open only one IndexSearcher and use it for all of your searches.

Note that you can only access Hits from an IndexSearcher as long as it is not yet closed, otherwise an IOException will be thrown.

NOTE: {@link

} instances are completely thread safe, meaning multiple threads can call any of its methods, concurrently. If your application requires external synchronization, you should not synchronize on the
CopyC#
IndexSearcher
instance; use your own (non-Lucene) objects instead.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[SerializableAttribute]
public class IndexSearcher : Searcher
Visual Basic
<SerializableAttribute> _
Public Class IndexSearcher _
	Inherits Searcher
Visual C++
[SerializableAttribute]
public ref class IndexSearcher : public Searcher

Inheritance Hierarchy

System..::..Object
  System..::..MarshalByRefObject
    Lucene.Net.Search..::..Searcher
      Lucene.Net.Search..::..IndexSearcher

See Also