MongoDB support search Bitwise XOR and Bit Count?

596 views Asked by At

I would like to move from MYSQL to MongoDB, one of the question I can not find answer for, if I can get or simulate XOR and Bit Count, which I need.

In MYSQL I would do:

SELECT BIT_COUNT(SimHash ^ $SimHash) as simhash ... ORDER BY simhash

It is possible to do something similar in MongoDB ?

Basically I want to do Simhashing, nice article for PHP/MySQL is http://www.titouangalopin.com/blog/2014-05-29-simhash

I need BitCount to support higher than 64bit integers.

0

There are 0 answers