elasticsearch/elasticsearch — pull request #5070 by s1monw (2014-02-10 15:40:37+00:00)
Title: Fix AndDocIdSet#IteratorBasedIterator to not violate initial doc state

AndDocIdSet#IteratorBasedIterator was potentially initialized with
NO_MORE_DOCS which violates the initial state of DocIdSetIterator and
could lead to undefined behavior when used in a search context.

Closes #5049