Skip to content
Advertisement

Tag: jest-client

Initializing JestClient when application calls multiple Elasticsearch endpoints

My API currently calls one Elasticsearch endpoint using JestClient. I want to add some functionality that requires calling a second, different Elasticsearch endpoint. How is this possible, when you have to specify the endpoint upon initializing JestClient? My application design uses Singleton classes for these initializations so I’m not sure how to fix this aside from using a different Elasticsearch

Advertisement