# Dense vector search using script\_score

**URL:** <https://discuss.elastic.co/t/dense-vector-search-using-script-score/328375>\
**Category:** Elasticsearch\
**Tags:** vector-search\
**Created:** [March 23, 2023, 4:49pm UTC](https://discuss.elastic.co/t/dense-vector-search-using-script-score/328375 "2023-03-23T16:49:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jack\_Conradson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_conradson/32/47236_2.png) [@Jack\_Conradson](https://discuss.elastic.co/u/Jack_Conradson)\
**Post date:** [March 23, 2023, 5:45pm UTC](https://discuss.elastic.co/t/dense-vector-search-using-script-score/328375/2 "2023-03-23T17:45:55Z")

</div>

Hi Marco,

Let me start by saying based on the information presented here, I don't believe this to be directly related to scripting. The `ClassCastException` makes sense if the `embeddings` mapping appeared to be a `float` type to the script.

Now, it's certainly odd that `embeddings` appeared as a `float` type, though. Are you able to reproduce this issue? And if so, would you please provide the steps you are taking to do so? Also when you say "reloading data" what do you mean by that?

Thanks!

---

_[View the full topic](https://discuss.elastic.co/t/dense-vector-search-using-script-score/328375)._
