1

Hi I am trying to query on elastic search by following the sql query and I want to implement same logic using Java API.

SELECT pid FROM test GROUP BY pid HAVING COUNT(id) > 1;

As i am new to ES i don't understand aggregations that well. please suggest how to implement the above using Java API.

2
  • 2
    This is kind of a duplicate to stackoverflow.com/questions/36823045/… Perhaps, this helps to build a solution with the java api. Commented May 2, 2016 at 18:10
  • 1
    Thanks Michael...that helped a lot.. Commented May 14, 2016 at 15:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.