Elasicsearch implementation using java

Hi,
I want to implement elasticsearch using java. How should my prooject should be. Whethrr a java project or dynamic web project or anyother. Please hel p me.