-
-
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
projecting score in $text search #841
Comments
This is stack trace from current develop branch:
|
Try setting |
OK |
No it won't. What you can do however is setup a dedicated endpoint with read-only access and |
I cannot get this working with eve
?where={"$text":{"$search":"cap zbynek"}}&projection={"score":{"$meta":"textScore"}}&sort=[("score", {"$meta": "textScore"})]
This is expected to behave as this pymongo code (sorted text search result):
Problem seems to be with projection - in eve it does not seem to be working as $meta projection, but rather as a regular projection - so it basically masks all fields from document except _id.
The text was updated successfully, but these errors were encountered: