Fixed the issue with elasticsearch.