first time playing with ElasticSearch.
I read docs and created ES cluster which consists one master and two data nodes:
# Master
...
node.master: true
node.ingest: true
node.data: false
...
# Data
...
node.master: false
node.ingest: false
node.data: true
...
Also, I have an app which will use this ES in future.
My main question - which node I should use while connecting to ES?
I believe it should be Master node, but, I can also connect to Data node. Is it possible to send data to the Master node and get from Data? What is the best way to use these nodes?