# Data type for 3 - 8 dimensions in k-d tree?

**URL:** <https://discuss.elastic.co/t/data-type-for-3-8-dimensions-in-k-d-tree/118762>\
**Category:** Elasticsearch\
**Created:** [February 7, 2018, 6:42am UTC](https://discuss.elastic.co/t/data-type-for-3-8-dimensions-in-k-d-tree/118762 "2018-02-07T06:42:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IanRC72](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ianrc72/32/26086_2.png) [@IanRC72](https://discuss.elastic.co/u/IanRC72)\
**Post date:** [February 7, 2018, 6:42am UTC](https://discuss.elastic.co/t/data-type-for-3-8-dimensions-in-k-d-tree/118762/1 "2018-02-07T06:42:21Z")

</div>

[This blog post](https://www.elastic.co/blog/lucene-points-6.0) talks of having up to 8 dimensions in the internal k-d tree index. However, the only data type I can find that would use a k-d tree is the 2D geo type.

How does one use 3+ dimensions? This would be very beneficial to my use case.

---

<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:** [February 9, 2018, 6:20pm UTC](https://discuss.elastic.co/t/data-type-for-3-8-dimensions-in-k-d-tree/118762/2 "2018-02-09T18:20:41Z")

</div>

You would need to create your own mapping type, which uses the Lucene apis to index such data. Elasticsearch does not expose any types with arbitrary or flexible dimensions.

---

<div class="post-metadata">

**Author:** ![IanRC72](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ianrc72/32/26086_2.png) [@IanRC72](https://discuss.elastic.co/u/IanRC72)\
**Post date:** [February 9, 2018, 6:42pm UTC](https://discuss.elastic.co/t/data-type-for-3-8-dimensions-in-k-d-tree/118762/3 "2018-02-09T18:42:25Z")

</div>

Thanks. Do you know if this is planned for Elasticsearch at some point?

---

<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 9, 2018, 6:42pm UTC](https://discuss.elastic.co/t/data-type-for-3-8-dimensions-in-k-d-tree/118762/4 "2018-03-09T18:42:42Z")

</div>

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