# Aggregate by property values with counter

**URL:** <https://discuss.elastic.co/t/aggregate-by-property-values-with-counter/235575>\
**Category:** Elasticsearch\
**Created:** [June 3, 2020, 2:18pm UTC](https://discuss.elastic.co/t/aggregate-by-property-values-with-counter/235575 "2020-06-03T14:18:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitterhh](https://avatars.discourse-cdn.com/v4/letter/g/b19c9b/32.png) [@gitterhh](https://discuss.elastic.co/u/gitterhh)\
**Post date:** [June 3, 2020, 2:18pm UTC](https://discuss.elastic.co/t/aggregate-by-property-values-with-counter/235575/1 "2020-06-03T14:18:36Z")

</div>

Is it possible to write an aggregate that will search a product by keyword, and besides the hits also will return the list of all possible properties in the next hits, as an example with ebay search, in the left sidebar "Capacity per module, "Form Factor", ...

Also to return in the aggregation all possible values for each property, as example "256MB", "512 MB", ...

 ![Screenshot](https://us1.discourse-cdn.com/elastic/original/3X/2/c/2cce809932372f884baf87886fd10f53e0bf79bb.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 1, 2020, 2:18pm UTC](https://discuss.elastic.co/t/aggregate-by-property-values-with-counter/235575/2 "2020-07-01T14:18:42Z")

</div>

Closed on July 1, 2020, 2:18pm UTC

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