ElasticsearchPython Interface


Parameters

ParameterDetails
hostsArray 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_startBoolean if you want the client to sniff nodes on startup, sniffing means getting list of nodes in elasticsearch cluster
sniff_on_connection_failBoolean for triggering sniffing if connection fails when client is active
sniffer_timeouttime difference in seconds between each sniff
sniff_timeouttime for a single request of sniffing in seconds
retry_on_timeoutBooelan for if client should timeout trigger contacting a different elasticsearch node or just throw error
http_authBasic http authentication can be provided here in the form of username:password