How to use transport client (or something else) to search in ES indices on another system?

Hi @Vicky2000,

did you see this?

I guess you have the following config in your elasticsearch.yml:

network :
    host : node-1

The host name has to be resolvable on the machine on which this Elasticsearch node runs. So you either:

  • Specify the concrete IP or just "all network interfaces" with 0.0.0.0
  • Add the host name to /etc/hosts (on the machine which runs this node) (note: I think this is unpractical but I still add it for completeness sake)
  • Configure an internal DNS server for resolving node names.

I'd recommend the first option to get started.

Daniel

1 Like