elasticsearch/elasticsearch — pull request #2613 by dadoonet (2013-02-04 09:15:04+00:00)
Title: When termsFilter is empty, use missingFilter instead

As discussed in the mailing list: https://groups.google.com/d/topic/elasticsearch/4Foz1VD0vt8/discussion

Here is a pull request that perform a `missing` filter when terms array is empty.