Today, App Search does not have a group-by API. If you have a support relationship with Elastic, you can ask them to file this as an Enhancement Request.
To explain my request, I use App search to be able to search destinations, I use this API -> Search API group with the group by destination : It's works well.
Then when I select a destination I have to find the associated accommodations. I was thinking of using
It's not that you're misusing the API, it's just that the API doesn't have a fully expressive "group by" API like you're wanting - it can only group on the one field. If you want more complex aggregations, you'll need to use the Elastcsearch API, or you'll need to file an Enhancement Request and wait for us to implement your ask.
Sorry I can't get you the exact capabilities you'd like!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.