How to add aggregions in KNN search?

I want to use aggregations over the search result of the knn_search api (because I need facet search on the user interface), but I cannot pass the agg parameter as in the search api. Any suggestions?

Indeed currently (before ES 8.4 version) it is not possible.
But in ES 8.4 we moved knn search inside _search API, so from 8.4 it will be possible to use aggregations on knn search results.

@mayya When will 8.4 come out?

@namespace-Pt we don't share exact release dates, but we are hard at work on preparing 8.4 now. In the past minor releases have come out every 2 months or so.

1 Like


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.