Merge pull request #502 from pmezard/fix-docidreader-next-doc
index: DocIDReader.Next() returns nil when done not io.EOF
This commit is contained in:
commit
58fe9b9562
|
@ -175,7 +175,7 @@ type FieldDict interface {
|
||||||
// Close the reader to release associated resources.
|
// Close the reader to release associated resources.
|
||||||
type DocIDReader interface {
|
type DocIDReader interface {
|
||||||
// Next returns the next document internal identifier in the natural
|
// Next returns the next document internal identifier in the natural
|
||||||
// index order, or io.EOF when the end of the sequence is reached.
|
// index order, nil when the end of the sequence is reached.
|
||||||
Next() (IndexInternalID, error)
|
Next() (IndexInternalID, error)
|
||||||
|
|
||||||
// Advance resets the iteration to the first internal identifier greater than
|
// Advance resets the iteration to the first internal identifier greater than
|
||||||
|
|
Loading…
Reference in New Issue
Block a user