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

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?


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
To view this discussion on the web visit
For more options, visit