Prepare search files