Expert: Low-level search implementation. Finds the top
CopyC#
n
hits for
CopyC#
query
, applying
CopyC#
filter
if non-null.

Called by {@link Hits}.

Applications should usually call {@link Searcher#Search(Query)} or {@link Searcher#Search(Query,Filter)} instead.

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

Syntax

C#
TopDocs Search(
	Weight weight,
	Filter filter,
	int n
)
Visual Basic
Function Search ( _
	weight As Weight, _
	filter As Filter, _
	n As Integer _
) As TopDocs
Visual C++
TopDocs^ Search(
	Weight^ weight, 
	Filter^ filter, 
	int n
)

Parameters

weight
Type: Lucene.Net.Search..::..Weight

[Missing <param name="weight"/> documentation for "M:Lucene.Net.Search.Searchable.Search(Lucene.Net.Search.Weight,Lucene.Net.Search.Filter,System.Int32)"]

filter
Type: Lucene.Net.Search..::..Filter

[Missing <param name="filter"/> documentation for "M:Lucene.Net.Search.Searchable.Search(Lucene.Net.Search.Weight,Lucene.Net.Search.Filter,System.Int32)"]

n
Type: System..::..Int32

[Missing <param name="n"/> documentation for "M:Lucene.Net.Search.Searchable.Search(Lucene.Net.Search.Weight,Lucene.Net.Search.Filter,System.Int32)"]

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.Searchable.Search(Lucene.Net.Search.Weight,Lucene.Net.Search.Filter,System.Int32)"]

See Also