Interface ITopDocsCollector
LUCENENET specific interface used to reference TopDocsCollector<T> without referencing its generic type.
Inherited Members
Assembly: DistributedLucene.Net.dll
Syntax
public interface ITopDocsCollector : ICollector
Properties
Name | Description |
---|---|
TotalHits | The total number of documents that matched this query. |
Methods
Name | Description |
---|---|
GetTopDocs() | Returns the top docs that were collected by this collector. |
GetTopDocs(Int32) | Returns the documents in the rage [ This method is convenient to call if the application always asks for the last results, starting from the last 'page'.
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 |
GetTopDocs(Int32, Int32) | Returns the documents in the rage [
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 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 GetTopDocs() and work with the returned TopDocs object, which will contain all the results this search execution collected. |