Thanks for all the follow up here. What version of Elastic are you using? Depending on your version you will want to make ensure that query_vector
contains floats and not doubles.
This post about a similar issue may also be helpful here, as well as this one.