#NEWLINE# def add_data( self , data , ids = None , num_procs = 1 ) : #NEWLINE# #INDENT# '\n        Add raw data into the search index.\n\n        :param ndarray data:\n            an ndarray with data points on the rows\n        :param ndarray ids:\n            an optional array of ids for each data point;\n            defaults to the index of the data point if not provided\n        :param int num_procs:\n            an integer specifying the number of processes to use to\n            compute codes for the data\n        ' #NEWLINE# codes = compute_codes_parallel ( data , self . model , num_procs ) #NEWLINE# self . add_codes ( codes , ids )