}, function (error, response) {
            if (!error && response.hits && response.hits.hits && response.hits.hits.length > 0) {
                indexObject = response.hits.hits[0]._source;
            }
            deferred.resolve(indexObject);