How can i search opencv feature matches in mongodb with python?

I use SIFT to save the feature points (kp, des) of ImageA to mongodb,
How can I match the kp and des of ImageB with the document in mongodb?

As far as I know, we can use knnmatch in BFmatcher for matching in python
Calculate and return the distance less than the threshold

Is this possible on mongodb?

Translate by Google.