elasticsearch - Elastic search java specific configuration -


i try access local instance of elasticserach through java api. according elastic search doc, can use "cluster.name" property specify name of cluster use. perfect. sadly can't specify node name use? can see 1 configurable in configuration. maybe bad practice?? also, can seehere can define custom service id did, how specify java transport client?

thank help.

the whole point of elasticsearch create cluster of highly available data. not nodes contain data , not nodes might time. if want connect single node specifying name , reason node down (it killed, being upgraded, being re-provisioned, data wiped reindexed, etc), client wouldn't able run queries , results.

instead, if connect cluster, es make sure route queries cluster nodes up, whatever state of nodes might down. best practice connect via cluster.name best out of es cluster.

as `service_id, it's not specify in code, it's name want give elasticsearch service when running on windows.


Comments