hosts | Array of hosts in the form of object containing keys host and port . Default host is 'localhost' and port is 9200. A sample entry looks like [{"host": "ip of es server", "port": 9200}] |
sniff_on_start | Boolean if you want the client to sniff nodes on startup, sniffing means getting list of nodes in elasticsearch cluster |
sniff_on_connection_fail | Boolean for triggering sniffing if connection fails when client is active |
sniffer_timeout | time difference in seconds between each sniff |
sniff_timeout | time for a single request of sniffing in seconds |
retry_on_timeout | Booelan for if client should timeout trigger contacting a different elasticsearch node or just throw error |
http_auth | Basic http authentication can be provided here in the form of username:password |