# Fallback to default values

**URL:** <https://discuss.elastic.co/t/fallback-to-default-values/124541>\
**Category:** Elasticsearch\
**Created:** [March 19, 2018, 11:30am UTC](https://discuss.elastic.co/t/fallback-to-default-values/124541 "2018-03-19T11:30:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kurasanthoshkumar](https://avatars.discourse-cdn.com/v4/letter/k/22d042/32.png) [@kurasanthoshkumar](https://discuss.elastic.co/u/kurasanthoshkumar)\
**Post date:** [March 19, 2018, 11:30am UTC](https://discuss.elastic.co/t/fallback-to-default-values/124541/1 "2018-03-19T11:30:35Z")

</div>

**Sample Tax data**

**_country Province tax_**  
USA Texas 10  
USA others 15  
India Kerala 12  
others others 17

**Usecases**  
If I give ,  
country as 'USA' and province as Texas, es should return 10%  
country as 'USA' and province as NY, es should return 15%  
country as 'UK' and province as London, es should return 17%

To fill the above usecases, how should we store the above sample tax data?

---

<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:** [April 16, 2018, 11:30am UTC](https://discuss.elastic.co/t/fallback-to-default-values/124541/2 "2018-04-16T11:30:55Z")

</div>

Closed on April 16, 2018, 11:30am UTC

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