Group by in Elastica PHP?

Anyone has any idea how to do a GroupBy aggregation in Elastica? Is it even implemented there?

If not, any idea how to implement a group by in Elastica, like another way of doing it?

Elastica is just a php client, right. So you are looking for examples of how to use the php client to write aggregations?

Have you thought about using our Elasticsearch php client? https://github.com/elastic/elasticsearch-php

This is relatively old but can aid in your building of your query: https://github.com/elastic/elasticsearch-php/issues/196#issuecomment-77161520

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