'Perform two multi searches.'

def test_TermQuery_double_multi(self):

    q1 = TermQuery('name', 'joe')
    q2 = TermQuery('name', 'clinton')
    resultset_single1 = self.conn.search(query=q1, indices=self.index_name)
    resultset_single2 = self.conn.search(query=q2, indices=self.index_name)
    self.assertEqual(resultset_single1.total, 1)
    self.assertEqual(resultset_single2.total, 1)
    resultset_multi = self.conn.search_multi([q1, q2], indices_list=([self.index_name] * 2))
    resultset_multi._do_search()
    self.assertTrue(resultset_multi.valid)
    self.assertEqual(resultset_multi[0].total, 1)
    self.assertEqual(resultset_multi[1].total, 1)
    self.assertDictEqual(resultset_multi[0][0], resultset_single1[0])
    self.assertDictEqual(resultset_multi[1][0], resultset_single2[0])
