# How are number fields and their BKD-trees represented internally?

**URL:** <https://discuss.elastic.co/t/how-are-number-fields-and-their-bkd-trees-represented-internally/88422>\
**Category:** Elasticsearch\
**Created:** [June 6, 2017, 1:02pm UTC](https://discuss.elastic.co/t/how-are-number-fields-and-their-bkd-trees-represented-internally/88422 "2017-06-06T13:02:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chanakyan-arivumani](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@chanakyan-arivumani](https://discuss.elastic.co/u/chanakyan-arivumani)\
**Post date:** [June 6, 2017, 1:02pm UTC](https://discuss.elastic.co/t/how-are-number-fields-and-their-bkd-trees-represented-internally/88422/1 "2017-06-06T13:02:27Z")

</div>

where exactly does elasticsearch store numeric fields/ bkd trees? how are they indexed?  
how is the relationship between text fields and number fields in a mapping defined internally?

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [June 7, 2017, 3:29am UTC](https://discuss.elastic.co/t/how-are-number-fields-and-their-bkd-trees-represented-internally/88422/2 "2017-06-07T03:29:30Z")

</div>

This blog may help you understand:

> **[The Evolution of Numeric Range Filters in Apache Lucene](https://www.elastic.co/blog/apache-lucene-numeric-filters)**
>
> Here we describe the historical and present day approach for numeric range filters in Elasticsearch and Apache Lucene.

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [June 7, 2017, 3:31am UTC](https://discuss.elastic.co/t/how-are-number-fields-and-their-bkd-trees-represented-internally/88422/3 "2017-06-07T03:31:13Z")

</div>

This also may help:

> **[Multi-dimensional points, coming in Apache Lucene 6.0
	  	 | Elastic](https://www.elastic.co/blog/lucene-points-6.0)**
>
> Coming in Lucene's next major release (6.0) is a new feature called dimensional points, using the k-d tree geo-spatial data structure to offer fast single- and multi-dimensional nu...

---

<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 5, 2017, 3:31am UTC](https://discuss.elastic.co/t/how-are-number-fields-and-their-bkd-trees-represented-internally/88422/4 "2017-07-05T03:31:20Z")

</div>

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