Returns the following:
  • -1 or {@link #NO_MORE_DOCS} if {@link #NextDoc()} or {@link #Advance(int)} were not called yet.
  • {@link #NO_MORE_DOCS} if the iterator has exhausted.
  • Otherwise it should return the doc ID it is currently on.

NOTE: in 3.0, this method will become abstract.

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

Syntax

C#
public virtual int DocID()
Visual Basic
Public Overridable Function DocID As Integer
Visual C++
public:
virtual int DocID()

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Search.DocIdSetIterator.DocID"]

See Also