elasticsearch/elasticsearch — pull request #8454 by martijnvg (2014-11-12 16:04:55+00:00)
Title: Aggs: Change nested agg to execute in doc id order

By executing in docid order the child level filters don't require random access bitset any more and can use normal docid set iterators. Also the child filters don't need the bitset cache anymore and can rely on the normal filter cache.

Note: PR is against 1.x branch