def test_ids_filter_with_type(self):
        f = filters.IdsFilter(values=[1, 2, 4], type=self.internal_type)
        q = Search(filter=f)
        result = self.conn.search(query=q, indices=self.index_name,
                                  doc_types=[])
        self.assertEqual(1, len(result.hits))
        self.assertItemsEqual([u'4'], [item._id for item in result.hits])
Doc type set in filter and left blank in search
dataset/ETHPy150Open aparo/pyes/tests/test_filters.py/IdsFilterTestCase.test_ids_filter_with_type