Changed SearchApi to process multiple files