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)}.
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public virtual TopFieldDocs Search( Weight weight, Filter filter, int nDocs, Sort sort, bool fillFields ) |
Visual Basic |
---|
Public Overridable Function Search ( _ weight As Weight, _ filter As Filter, _ nDocs As Integer, _ sort As Sort, _ fillFields As Boolean _ ) As TopFieldDocs |
Visual C++ |
---|
public: virtual TopFieldDocs^ Search( Weight^ weight, Filter^ filter, int nDocs, Sort^ sort, bool fillFields ) |
Parameters
- weight
- Type: Lucene.Net.Search..::..Weight
[Missing <param name="weight"/> documentation for "M:Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight,Lucene.Net.Search.Filter,System.Int32,Lucene.Net.Search.Sort,System.Boolean)"]
- filter
- Type: Lucene.Net.Search..::..Filter
[Missing <param name="filter"/> documentation for "M:Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight,Lucene.Net.Search.Filter,System.Int32,Lucene.Net.Search.Sort,System.Boolean)"]
- nDocs
- Type: System..::..Int32
[Missing <param name="nDocs"/> documentation for "M:Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight,Lucene.Net.Search.Filter,System.Int32,Lucene.Net.Search.Sort,System.Boolean)"]
- sort
- Type: Lucene.Net.Search..::..Sort
[Missing <param name="sort"/> documentation for "M:Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight,Lucene.Net.Search.Filter,System.Int32,Lucene.Net.Search.Sort,System.Boolean)"]
- fillFields
- Type: System..::..Boolean
[Missing <param name="fillFields"/> documentation for "M:Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight,Lucene.Net.Search.Filter,System.Int32,Lucene.Net.Search.Sort,System.Boolean)"]
Return Value
[Missing <returns> documentation for "M:Lucene.Net.Search.IndexSearcher.Search(Lucene.Net.Search.Weight,Lucene.Net.Search.Filter,System.Int32,Lucene.Net.Search.Sort,System.Boolean)"]