Expert: Low-level search implementation with arbitrary sorting. Finds the top
CopyC#
n
hits for
CopyC#
query
, applying
CopyC#
filter
if non-null, and sorting the hits by the criteria in
CopyC#
sort
.

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

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

Syntax

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

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,Lucene.Net.Search.Sort)"]

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,Lucene.Net.Search.Sort)"]

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,Lucene.Net.Search.Sort)"]

sort
Type: Lucene.Net.Search..::..Sort

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

Return Value

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

See Also