title: Composite Aggregation in ElasticSearch Java
body: <p>I went through many articles to find any appropriate solution to add a Composite aggregation but did not find any relevant solution.</p>
  
  <p>I have achieved it . See the answer, hope this will help.</p>