A ranked list of documents, used to hold search results.
Caution: Iterate only over the hits needed. Iterating over all hits is
generally not desirable and may be the source of performance issues. If you
need to iterate over many or all hits, consider using the search method that
takes a {@link HitCollector}.
Note: Deleting matching documents concurrently with traversing the
hits, might, when deleting hits that were not yet retrieved, decrease
{@link #Length()}. In such case,
{@link java.util.ConcurrentModificationException
ConcurrentModificationException} is thrown when accessing hit
> current_{@link #Length()} (but < {@link #Length()}
_at_start).
Namespace: Lucene.Net.SearchCopyC#
n
CopyC#
n
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
[ObsoleteAttribute("see Searcher.Search(Query, int), Searcher.Search(Query, Filter, int) and Searcher.Search(Query, Filter, int, Sort)")] public sealed class Hits |
Visual Basic |
---|
<ObsoleteAttribute("see Searcher.Search(Query, int), Searcher.Search(Query, Filter, int) and Searcher.Search(Query, Filter, int, Sort)")> _ Public NotInheritable Class Hits |
Visual C++ |
---|
[ObsoleteAttribute(L"see Searcher.Search(Query, int), Searcher.Search(Query, Filter, int) and Searcher.Search(Query, Filter, int, Sort)")] public ref class Hits sealed |