# Elastichsearch Aggregations

**URL:** https://discuss.elastic.co/t/elastichsearch-aggregations/47381
**Category:** Elasticsearch
**Created:** [April 14, 2016, 12:21pm UTC](https://discuss.elastic.co/t/elastichsearch-aggregations/47381 "2016-04-14T12:21:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Anushank\_Lal](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@Anushank\_Lal](https://discuss.elastic.co/u/Anushank_Lal)
#### Post date: [April 14, 2016, 12:21pm UTC](https://discuss.elastic.co/t/elastichsearch-aggregations/47381/1 "2016-04-14T12:21:27Z")

</div>

We have multiple hotels and each hotel has diffirent price for different date which is also device specific. Now, if user search for a date range(11-04-2016 to 13-04-2016) then we need to get:

Hotel sorted against thier aggregate prices for the given dates for each device type.

I had kept prices, availability & dates within nested objects. See gist below:

> <https://gist.github.com/Anushank-lal/bc001c71452352de20bef9d2481a1b3e>
>
> There are more than three files. show original

Please help.

Thanks  
Anushank

---

<div class="post-metadata">

### Author: ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)
#### Post date: [April 14, 2016, 12:53pm UTC](https://discuss.elastic.co/t/elastichsearch-aggregations/47381/3 "2016-04-14T12:53:00Z")

</div>

This appears to be the same question as [Elastichsearch Price Aggregations on multi Nested Objects](https://discuss.elastic.co/t/elastichsearch-price-aggregations-on-multi-nested-objects/47355). Please keep your questions on one thread and be patient when waiting for an answer (see [https://www.elastic.co/community/codeofconduct](https://www.elastic.co/community/codeofconduct) for more information on the code of conduct for this forum, in this case the 'be patient' section).

---

<div class="post-metadata">

### Author: ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)
#### Post date: [April 14, 2016, 1:10pm UTC](https://discuss.elastic.co/t/elastichsearch-aggregations/47381/4 "2016-04-14T13:10:23Z")

</div>

This topic was automatically closed after 17 minutes. New replies are no longer allowed.
