msokolov commented on code in PR #16431:
URL: https://github.com/apache/lucene/pull/16431#discussion_r3676398949


##########
lucene/core/src/java/org/apache/lucene/search/DoubleValuesSource.java:
##########
@@ -46,6 +47,16 @@
  */
 public abstract class DoubleValuesSource implements SegmentCacheable {
 
+  /** Monotonicity direction of a decoder function */
+  public enum Monotonicity {
+    /** Increasing function */
+    INCREASING,

Review Comment:
   Also, if the function is a composite function, like `sum`, it is 
non-increasing when both of its inputs are, but non-decreasing when both of its 
inputs are, but when one is decreasing and the other one increasing, it is 
undefined. I don't know how we can really expect this to work with general 
functions
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to