# Is it possible to do vectors dot-product and fetch results with top score?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-do-vectors-dot-product-and-fetch-results-with-top-score/23212>\
**Category:** Elasticsearch\
**Created:** [April 13, 2015, 3:25pm UTC](https://discuss.elastic.co/t/is-it-possible-to-do-vectors-dot-product-and-fetch-results-with-top-score/23212 "2015-04-13T15:25:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kikipedia](https://avatars.discourse-cdn.com/v4/letter/k/9fc348/32.png) [@kikipedia](https://discuss.elastic.co/u/kikipedia)\
**Post date:** [April 13, 2015, 3:25pm UTC](https://discuss.elastic.co/t/is-it-possible-to-do-vectors-dot-product-and-fetch-results-with-top-score/23212/1 "2015-04-13T15:25:01Z")

</div>

Let's say we have tons of documents with vector such as {a:1.0, b:1.2, ...}  
for each.  
and what I want to do is to query with a user side vector, maybe {b:9.2,  
c:1.2, ...}, and return documents with highest dot-product values.

I am totally a newbie to lucene/elasticsearch, can anyone tell me is it  
possible to achieve this with ES?

thanks,

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b80cd7c7-185e-41f0-b894-4a3ba1e43723%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b80cd7c7-185e-41f0-b894-4a3ba1e43723%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:20am UTC](https://discuss.elastic.co/t/is-it-possible-to-do-vectors-dot-product-and-fetch-results-with-top-score/23212/2 "2017-07-06T00:20:04Z")

</div>


