#NEWLINE# def test_TermQuery_double_multi( self ) : #NEWLINE# #INDENT# 'Perform two multi searches.' #NEWLINE# q1 = TermQuery ( 'name' , 'joe' ) #NEWLINE# q2 = TermQuery ( 'name' , 'clinton' ) #NEWLINE# resultset_single1 = self . conn . search ( query = q1 , indices = self . index_name ) #NEWLINE# resultset_single2 = self . conn . search ( query = q2 , indices = self . index_name ) #NEWLINE# self . assertEqual ( resultset_single1 . total , 1 ) #NEWLINE# self . assertEqual ( resultset_single2 . total , 1 ) #NEWLINE# resultset_multi = self . conn . search_multi ( [ q1 , q2 ] , indices_list = ( [ self . index_name ] * 2 ) ) #NEWLINE# resultset_multi . _do_search ( ) #NEWLINE# self . assertTrue ( resultset_multi . valid ) #NEWLINE# self . assertEqual ( resultset_multi [ 0 ] . total , 1 ) #NEWLINE# self . assertEqual ( resultset_multi [ 1 ] . total , 1 ) #NEWLINE# self . assertDictEqual ( self [ 0 ] [ 0 ] , resultset_single1 [ 0 ] ) #NEWLINE# self . assertDictEqual ( resultset_multi [ 1 ] [ 0 ] , resultset_single2 [ 0 ] )