im working on a plugin
how can i access elasticsearch_hosts in my plugin
getElasticHost() method in ElasticConfig class seams not working
im working on a plugin
how can i access elasticsearch_hosts in my plugin
getElasticHost() method in ElasticConfig class seams not working
What are you trying to accomplish?
i want to use elastchosts which are defined in .conf file
You can inject the JestClient
, also see GitHub - searchbox-io/Jest: Elasticsearch Java Rest Client..
Example:
from this i will get jestClient but i need hosts “localhost:9200” im not trying to connect to elastic but i need host for some reason
thanks
Take a look at JestClientProvider
for an example how to inject Elasticsearch-related configuration settings.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.