Lucene.Net.Search.IndexSearcher.IndexSearcher C# (CSharp) Méthode

IndexSearcher() public méthode

Creates a searcher searching the index in the named directory. You should pass readOnly=true, since it gives much better concurrent performance, unless you intend to do write operations (delete documents or change norms) with the underlying IndexReader.
public IndexSearcher ( Lucene.Net.Store.Directory path, bool readOnly ) : System
path Lucene.Net.Store.Directory directory where IndexReader will be opened ///
readOnly bool if true, the underlying IndexReader /// will be opened readOnly ///
Résultat System
		public IndexSearcher(Directory path, bool readOnly):this(IndexReader.Open(path, readOnly), true)
		{
		}

Same methods

IndexSearcher::IndexSearcher ( IndexReader r ) : System
IndexSearcher::IndexSearcher ( IndexReader reader, IndexReader subReaders, int docStarts ) : System
IndexSearcher::IndexSearcher ( IndexReader r, bool closeReader ) : System
IndexSearcher::IndexSearcher ( Lucene.Net.Store.Directory path ) : System