-
-
Notifications
You must be signed in to change notification settings - Fork 716
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
handle user input on get_docid_for_value_range #1760
Conversation
1406d82
to
5dd47cd
Compare
Codecov Report
@@ Coverage Diff @@
## main #1760 +/- ##
========================================
Coverage 94.13% 94.14%
========================================
Files 267 267
Lines 50900 51129 +229
========================================
+ Hits 47917 48136 +219
- Misses 2983 2993 +10
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
/// | ||
/// coerce_up means the next valid upper value in the value space will be chosen if the value | ||
/// has to be coerced. | ||
fn mapping_coerce(&self, inp: External, _coerce_up: bool) -> (bool, Internal) { |
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.
Would something like .map_lower_than(&self, bound: Bound<To>) -> Bound<From>
do the job?
If it would, I feel like the contract is more obvious.
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.
We could pass a Range in mapping_coerce
instead (we don't have bounds here anymore). We still need the early exit for correctness if both map in front of the value space, and for that return a 1..0 range.
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.
See comment inline
0ddaa81
to
e30f74b
Compare
e30f74b
to
5ea89f5
Compare
5ea89f5
to
8962cfd
Compare
* handle user input on get_docid_for_value_range fixes #1757 * pass range as parameter
* handle user input on get_docid_for_value_range fixes quickwit-oss#1757 * pass range as parameter
fixes #1757