Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interacting with Amazon Elasticsearch Service using JAVA SDK

I am having trouble finding examples of how to interact with an amazon elasticsearch cluster using the amazon sdk. Can someone point me to examples? I've found javadocs for things like AWSCredentials and the AWSElasticsearchClient, just looking for concrete examples of how to glue everything together. I'm looking for how to do things like:

-create an index

-index documents

-delete documents

Just the basic operations. I assume that there is an 'amazon' way of creating a client and interacting with the cluster since they provide an sdk and a credentials object for signing requests.

like image 658
user1154644 Avatar asked Sep 14 '16 23:09

user1154644


Video Answer


1 Answers

Did a little more digging and I guess those SDK classes are more for doing 'infrastructure' type operations against your elasticsearch instance, like spinning up a new node, etc, not for creating a client to do search/index type operations. I guess I can just use a Jest Client instead.

like image 129
user1154644 Avatar answered Oct 03 '22 19:10

user1154644