-
-
Notifications
You must be signed in to change notification settings - Fork 744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OperationFailure: must have $meta projection for all $meta sort keys #1176
Comments
By looking at your stack trace, the exception is raised by PyMongo. Did you try to backport it a little bit? |
I tested the full text search query in two environments: Environment 1
→ Working fine ✔️ Environment 2
→ Not working ❌ As you can see, the PyMongo version is the same. |
The issue only surfaces on Eve 0.7.10, not on the latest stable, right? |
(in the previous post, the contrary appeared to be true) |
My bad, my second post was wrong (I updated it). It is not working with Eve 0.8. I had to roll back to version 7.10 to be able to use the full text search query. |
Should be fixed in 0.8.1-dev |
Expected Behavior
I'am using the Full Text Search capability of MongoDB. To do so, my queries look like that
http://eve/example?where={"$text":{"$search":"test"}}&projection={"score":{"$meta":"textScore"}}&sort=[("score", {"$meta": "textScore"})]
This is working fine with Eve 0.7.10
Note that I set the
allow_unknown
property toTrue
. (#841)Actual Behavior
After the upgrade to Eve 0.8, I have the following error:
Environment
The text was updated successfully, but these errors were encountered: