Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Any documentation/tutorial available? #3

Closed
carminexx opened this issue Nov 7, 2014 · 2 comments
Closed

Any documentation/tutorial available? #3

carminexx opened this issue Nov 7, 2014 · 2 comments

Comments

@carminexx
Copy link

Hi,
Is there a tutorial for dropwizard-elasticsearch usage? I can't find anything in documentation regarding setup and real usage.
For example, how to use the EsConfiguration class, how to name the .yml file for es conf, and how to run and use the ElasticSearch API throughout the Dropwizard application.

Moreover, when I try to register the ManagedEsClient, I got into the error "cannot find symbol : method lifecycle()":

env.lifecycle().manage(managedClient);

Should I configure or enable something in my drop wizard application?

Thanks,

@joschi
Copy link
Member

joschi commented Mar 30, 2015

dropwizard-elasticsearch is only a very thin layer around the vanilla Elasticsearch client. It basically enables binding the lifecycle of the Elasticsearch Client instance to the lifecycle of your Dropwizard application and provides a simple health check.

There isn't much more to it than adding EsConfiguration to the configuration class of your application and optionally add the provided health check as described in https://github.com/dropwizard/dropwizard-elasticsearch#usage

Moreover, when I try to register the ManagedEsClient, I got into the error "cannot find symbol : method lifecycle()":

env.lifecycle().manage(managedClient);

Could you please post the complete error message including all stack traces?

@joschi
Copy link
Member

joschi commented Oct 25, 2015

No further information provided by original author. Closing issue.

@joschi joschi closed this as completed Oct 25, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants