-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add support for "star" inclusion/exclusion (include all/exclude all) #1008
Conversation
{ | ||
"find": { | ||
"sort" : {"$vector" : [0.15, 0.1, 0.1, 0.35, 0.55]}, | ||
"projection" : {"*" : 1}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test case with non-zero and non-one value as well? (to make sure it behaves as true)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kathirsvn Sounds good, will add in suitable place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added more unit tests to cover non-0/non-1 numbers, booleans.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What this PR does:
Adds support for 2 special query projections:
as per #1001, as convenience shortcuts that ignore special field (_id, $vector, $vectorize) logic regarding default inclusion/exclusion.
Also prepares for bigger fix, #1005.
Which issue(s) this PR fixes:
Fixes #1001
Checklist