Returns the documents in the rage [start .. start+howMany) that were collected by this collector. Note that if start >= pq.size(), an empty TopDocs is returned, and if pq.size() - start < howMany, then only the available documents in [start .. pq.size()) are returned.
This method is useful to call in case pagination of search results is allowed by the search application, as well as it attempts to optimize the memory used by allocating only as much as requested by howMany.
NOTE: you cannot call this method more than once for each search execution. If you need to call it more than once, passing each time a different range, you should call {@link #TopDocs()} and work with the returned {@link TopDocs} object, which will contain all the results this search execution collected.

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

Syntax

C#
public TopDocs TopDocs(
	int start,
	int howMany
)
Visual Basic
Public Function TopDocs ( _
	start As Integer, _
	howMany As Integer _
) As TopDocs
Visual C++
public:
TopDocs^ TopDocs(
	int start, 
	int howMany
)

Parameters

start
Type: System..::..Int32

[Missing <param name="start"/> documentation for "M:Lucene.Net.Search.TopDocsCollector.TopDocs(System.Int32,System.Int32)"]

howMany
Type: System..::..Int32

[Missing <param name="howMany"/> documentation for "M:Lucene.Net.Search.TopDocsCollector.TopDocs(System.Int32,System.Int32)"]

Return Value

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

See Also