Logged actual search index errors

And also returned 500 error so that task queue retries when there is an
error