Configures and install elasticsearch