Is there any way to do complicated mathematical matching of indexes while retrieval? <not just simple text comparison >

Hello everyone,
We are here basically working on a project for developing a content based
video retrieval system. We have used hadoop + Javacv + Xuggler for hashing
the videos in form of feature vectors represented as histograms. So for real
time retrieval of these videos, we were planning to use Solr, for indexing
these feature vectors.

But the problem is, when the input query clip is given by user for
comparison -- which is also hashed to obtain the feature vectors, which then
can be used for comparison with the indexed hashed values, but what we
really need to do is something sort of Histogram intersection of the query's
histogram with that of indexed ones to obtain a similarity value. So how can
we do this? is there any way out for doing a mathematical comparison in
elasticsearch?

Thank you.

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Is-there-any-way-to-do-complicated-mathematical-matching-of-indexes-while-retrieval-not-just-simple--tp3836914p3836914.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.