Returns a {@link HitIterator} to navigate the Hits. Each item returned from {@link Iterator#next()} is a {@link Hit}.

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 a search method that takes a {@link HitCollector}.

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

Syntax

C#
public IEnumerator Iterator()
Visual Basic
Public Function Iterator As IEnumerator
Visual C++
public:
IEnumerator^ Iterator()

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.Hits.Iterator"]

See Also