elasticsearch/elasticsearch — pull request #8390 by rmuir (2014-11-07 16:12:22+00:00)
Title: Don't pass acceptdocs down to parents filter.

This may result in something other than FixedBitSet and cause an error.

Its wasteful at least, we already pass it to the scorer. But its possible if acceptDocs are non-null that we could get back a BitsFilteredDocIdSet or similar, which would cause an exception (e.g. during delete by query).

PR moved from #8389

This is because its impossible to add a test for 1.4, it has a dedicated FixedBitSet cache and drops acceptDocs correctly. We should still change it to pass null! But we can also include a test for 1.3

In master everything is type-safe