Enter to send·Shift+Enter new line
Method to check if an index exists in the Elasticsearch database.
doesIndexExist(): Promise<boolean>