2

How can I write aggregation query on a particular term in hibernate search using elastic search.Is there any way to do this?

1 Answers1

2

If you are looking to perform faceting (which is one way of using aggregations), Hibernate Search provides a dedicated feature: https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#query-faceting

If you want to aggregate for other purposes, I'm afraid this is not possible (yet) using Hibernate Search. We are planning to introduce it in Hibernate Search 6, though (or at least allow to perform aggregations by bypassing Hibernate Search's abstractions).

yrodiere
  • 9,280
  • 1
  • 13
  • 35