Added error checking to HTTP posting of batch items
added error checking to search
added result