NOTE: aggregations are being implemented as part of HSEARCH-3649, but this ticket is about more than just aggregations: it's also about using them in sub-queries and having predicates rely on the result of these sub-queries. Not sure there is such a built-in feature in Elasticsearch, it might require multiple queries. To be investigated.
----
I have a use case where I am fetching results from hibernate search documents after indexing. However its not a simple matching query. I need to apply SQL aggregate functions while fetching data from document. Since it is not supported currently I had to implement all such function in Java itself after fetching a list of entities.
I have attached a document which will illustrate this use case in more detail. |
|