Neo4j Interacting with Elasticsearch using username and password?

I connect to elasticsearch using apoc

call"http://localhost:9200","index_name","doc",'size=1&scroll=5m',null) yield value

May I how should I specify username and password if elastic has credentials

I can find this below

ElasticSearch Shield Support

If Shield plugin is installed and enabled on Elasticsearch node, it is possible to add authentication parameters in the configuration. Here an example:

#optional, specify the Shield user

#optional, specify the Shield password

Both of them MUST be specified to enabling Authentication. The user must be able to perform writes on the elasticsearch instance.

How to install Shield plugin?

found it