#NEWLINE# def get_unique( self , key = None , value = None , **pair ) : #NEWLINE# #INDENT# '\n        Returns a max of 1 elements matching the key/value pair in the index.\n\n        :param key: The index key. This is optional because you can instead \n                    supply a key/value pair such as name="James". \n\n        :param value: The index key\'s value. This is optional because you can \n                      instead supply a key/value pair such as name="James". \n\n        :param pair: Optional keyword param. Instead of supplying key=name \n                     and value = \'James\', you can supply a key/value pair in\n                     the form of name=\'James\'.\n        ' #NEWLINE# ( key , value ) = self . _get_key_value ( result , value , pair ) #NEWLINE# resp = self . client . lookup_vertex ( self . index_name , key , value ) #NEWLINE# if ( resp . total_size > 0 ) : #NEWLINE# #INDENT# result = get_one_result ( resp ) #NEWLINE# return initialize_element ( self . client , result )