# Dense vector field type

**URL:** <https://discuss.elastic.co/t/dense-vector-field-type/302548>\
**Category:** Elasticsearch\
**Created:** [April 16, 2022, 10:09am UTC](https://discuss.elastic.co/t/dense-vector-field-type/302548 "2022-04-16T10:09:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anand\_p\_s](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anand_p_s/32/102340_2.png) [@Anand\_p\_s](https://discuss.elastic.co/u/Anand_p_s)\
**Post date:** [April 16, 2022, 10:09am UTC](https://discuss.elastic.co/t/dense-vector-field-type/302548/1 "2022-04-16T10:09:25Z")

</div>

How can apply dense vector size(dims) to 2048

"mappings": {  
"properties": {  
"denseVector": {  
"type": "dense\_vector",  
"index": false,  
"dims":2048  
}  
}  
}

And i got  
**The number of dimensions for field [denseVector] should be in the range [1, 1024]** this error

pls help

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [April 16, 2022, 11:56am UTC](https://discuss.elastic.co/t/dense-vector-field-type/302548/2 "2022-04-16T11:56:05Z")

</div>

Hi!  
What is ES aversion?

I ran with the value 0 and got another answer:  
**"The number of dimensions for field [denseVector] should be in the range [1, 2048] but was [0]"**

---

<div class="post-metadata">

**Author:** ![Anand\_p\_s](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anand_p_s/32/102340_2.png) [@Anand\_p\_s](https://discuss.elastic.co/u/Anand_p_s)\
**Post date:** [April 19, 2022, 9:59am UTC](https://discuss.elastic.co/t/dense-vector-field-type/302548/3 "2022-04-19T09:59:48Z")

</div>

my ES version 7.3

---

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [April 19, 2022, 11:33am UTC](https://discuss.elastic.co/t/dense-vector-field-type/302548/4 "2022-04-19T11:33:34Z")

</div>

For this version you cant exceed 1024.

> A `dense_vector` field stores dense vectors of float values. The maximum number of dimensions that can be in a vector should not exceed 1024. A `dense_vector` field is a single-valued field.

> **[Dense vector datatype | Elasticsearch Guide \[7.3\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/dense-vector.html)**

---

<div class="post-metadata">

**Author:** ![Anand\_p\_s](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anand_p_s/32/102340_2.png) [@Anand\_p\_s](https://discuss.elastic.co/u/Anand_p_s)\
**Post date:** [April 20, 2022, 6:06am UTC](https://discuss.elastic.co/t/dense-vector-field-type/302548/5 "2022-04-20T06:06:51Z")

</div>

Thanks for helpiing me 👍 👍

---

<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:** [May 18, 2022, 6:07am UTC](https://discuss.elastic.co/t/dense-vector-field-type/302548/6 "2022-05-18T06:07:07Z")

</div>

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