Wrapped call to search index in try - catch to enable a more graceful fa...

...il when indexing fails. Replaced the deprecated calls to res.send(yyy, message) to res.status(yyy).send(message)