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

**URL:** https://discuss.elastic.co/t/is-there-any-way-to-do-complicated-mathematical-matching-of-indexes-while-retrieval-not-just-simple-text-comparison/7045
**Category:** Elasticsearch
**Created:** [March 18, 2012, 5:21pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-do-complicated-mathematical-matching-of-indexes-while-retrieval-not-just-simple-text-comparison/7045 "2012-03-18T17:21:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rohitkondekar](https://avatars.discourse-cdn.com/v4/letter/r/ce7236/32.png) [@rohitkondekar](https://discuss.elastic.co/u/rohitkondekar)
#### Post date: [March 18, 2012, 5:21pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-do-complicated-mathematical-matching-of-indexes-while-retrieval-not-just-simple-text-comparison/7045/1 "2012-03-18T17:21:48Z")

</div>

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](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](http://Nabble.com).

---

<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, 3:35am UTC](https://discuss.elastic.co/t/is-there-any-way-to-do-complicated-mathematical-matching-of-indexes-while-retrieval-not-just-simple-text-comparison/7045/2 "2017-07-06T03:35:42Z")

</div>


