'Doc type set in filter and left blank in search'

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])
