# Inconsistent behavior between "range" and "numeric\_range" on unmapped dynamic\_template fields

**URL:** <https://discuss.elastic.co/t/inconsistent-behavior-between-range-and-numeric-range-on-unmapped-dynamic-template-fields/9548>\
**Category:** Elasticsearch\
**Created:** [November 4, 2012, 4:22pm UTC](https://discuss.elastic.co/t/inconsistent-behavior-between-range-and-numeric-range-on-unmapped-dynamic-template-fields/9548 "2012-11-04T16:22:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Milo\_Simpson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/milo_simpson/32/2657_2.png) [@Milo\_Simpson](https://discuss.elastic.co/u/Milo_Simpson)\
**Post date:** [November 4, 2012, 4:22pm UTC](https://discuss.elastic.co/t/inconsistent-behavior-between-range-and-numeric-range-on-unmapped-dynamic-template-fields/9548/1 "2012-11-04T16:22:08Z")

</div>

Range filter queries degrade nicely across unmapped dynamic\_template  
fields, while numeric\_range queries throw an error : "failed to find  
mapping for field". Bug, Feature, or as Designed?

Tested on 0.19.11

Thank you.

--

---

<div class="post-metadata">

**Author:** ![Milo\_Simpson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/milo_simpson/32/2657_2.png) [@Milo\_Simpson](https://discuss.elastic.co/u/Milo_Simpson)\
**Post date:** [November 4, 2012, 4:25pm UTC](https://discuss.elastic.co/t/inconsistent-behavior-between-range-and-numeric-range-on-unmapped-dynamic-template-fields/9548/2 "2012-11-04T16:25:49Z")

</div>

Proper link to gist. [https://gist.github.com/4010453#file\_query.sh](https://gist.github.com/4010453#file_query.sh)

--

---

<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 6, 2017, 3:06am UTC](https://discuss.elastic.co/t/inconsistent-behavior-between-range-and-numeric-range-on-unmapped-dynamic-template-fields/9548/3 "2017-07-06T03:06:16Z")

</div>


