# Caching hotel prices

**URL:** https://discuss.elastic.co/t/caching-hotel-prices/264590
**Category:** Elasticsearch
**Created:** [February 17, 2021, 2:52pm UTC](https://discuss.elastic.co/t/caching-hotel-prices/264590 "2021-02-17T14:52:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![half](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/half/32/84052_2.png) [@half](https://discuss.elastic.co/u/half)
#### Post date: [February 17, 2021, 2:52pm UTC](https://discuss.elastic.co/t/caching-hotel-prices/264590/1 "2021-02-17T14:52:45Z")

</div>

We are building a hotel reservation system. There will be 5000 hotels and each hotel can have up to 10 room types. The rates for each room depend on selected dates and number of adults. We are planning to prepare precalculated prices for every possible combination (1-10adults x 3-14lengthOfStay x 365days). Can we use Elasticsearch to store all the precalculated rates, in order to do quick sorting and filtering of hotels?

Thank you

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [February 17, 2021, 3:29pm UTC](https://discuss.elastic.co/t/caching-hotel-prices/264590/2 "2021-02-17T15:29:48Z")

</div>

Welcome!

I don't see anything that would prevent you from doing it.  
It's data after all. So you can index it into elasticsearch.

---

<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: [March 17, 2021, 3:30pm UTC](https://discuss.elastic.co/t/caching-hotel-prices/264590/3 "2021-03-17T15:30:32Z")

</div>

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