Method |
Description |
|
Doc ( int i ) : Lucene.Net.Documents.Document |
|
|
Doc ( int i, Lucene.Net.Documents.FieldSelector fieldSelector ) : Lucene.Net.Documents.Document |
|
|
DocFreq ( Lucene.Net.Index.Term term ) : int |
|
|
Explain ( Weight weight, int doc ) : Explanation |
|
|
IndexSearcher ( IndexReader r ) : System |
Creates a searcher searching the provided index Note that the underlying IndexReader is not closed, if IndexSearcher was constructed with IndexSearcher(IndexReader r). If the IndexReader was supplied implicitly by specifying a directory, then the IndexReader gets closed. |
|
IndexSearcher ( IndexReader reader, IndexReader subReaders, int docStarts ) : System |
Expert: directly specify the reader, subReaders and their DocID starts NOTE: This API is experimental and might change in incompatible ways in the next release |
|
IndexSearcher ( Lucene.Net.Store.Directory path ) : System |
Creates a searcher searching the index in the named directory, with readOnly=true |
|
IndexSearcher ( Lucene.Net.Store.Directory path, bool readOnly ) : System |
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. |
|
Rewrite ( Query original ) : Query |
|
|
Search ( Weight weight, Filter filter, int nDocs ) : Lucene.Net.Search.TopDocs |
|
|
Search ( Weight weight, Filter filter, int nDocs, Lucene.Net.Search.Sort sort ) : Lucene.Net.Search.TopFieldDocs |
|
|
Search ( Weight weight, Filter filter, int nDocs, Lucene.Net.Search.Sort sort, bool fillFields ) : Lucene.Net.Search.TopFieldDocs |
Just like Search(Weight, Filter, int, Sort), but you choose whether or not the fields in the returned FieldDoc instances should be set by specifying fillFields. NOTE: this does not compute scores by default. If you need scores, create a TopFieldCollector instance by calling TopFieldCollector.Create and then pass that to Search(Weight, Filter, Collector). |
|
Search ( Weight weight, Filter filter, Collector collector ) : void |
|
|
SetDefaultFieldSortScoring ( bool doTrackScores, bool doMaxScore ) : void |
By default, no scores are computed when sorting by field (using Searcher.Search(Query,Filter,int,Sort)). You can change that, per IndexSearcher instance, by calling this method. Note that this will incur a CPU cost. |
|