# I have a query regarding dense\_vector in elastic search

**URL:** <https://discuss.elastic.co/t/i-have-a-query-regarding-dense-vector-in-elastic-search/270327>\
**Category:** Elasticsearch\
**Created:** [April 16, 2021, 5:55am UTC](https://discuss.elastic.co/t/i-have-a-query-regarding-dense-vector-in-elastic-search/270327 "2021-04-16T05:55:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul_singh/32/87160_2.png) [@Rahul\_Singh](https://discuss.elastic.co/u/Rahul_Singh)\
**Post date:** [April 16, 2021, 5:55am UTC](https://discuss.elastic.co/t/i-have-a-query-regarding-dense-vector-in-elastic-search/270327/1 "2021-04-16T05:55:14Z")

</div>

Hi,

I am using elastic search using python, i am creating dense\_vector in mapping and then trying to add the feild via python a list of float value e.g - [1.02,2,1.01..] and am unable to ad it.

the error says cant change [dense\_vector] to [float]  
i tried np.array([1.0,.....]) but same error.

please help me here

---

<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 14, 2021, 5:55am UTC](https://discuss.elastic.co/t/i-have-a-query-regarding-dense-vector-in-elastic-search/270327/2 "2021-05-14T05:55:24Z")

</div>

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