LuXugang commented on code in PR #12405:
URL: https://github.com/apache/lucene/pull/12405#discussion_r1266458966


##########
lucene/core/src/java/org/apache/lucene/search/comparators/DoubleComparator.java:
##########
@@ -61,8 +63,12 @@ public LeafFieldComparator 
getLeafComparator(LeafReaderContext context) throws I
   /** Leaf comparator for {@link DoubleComparator} that provides skipping 
functionality */
   public class DoubleLeafComparator extends NumericLeafComparator {
 
+    private final byte[] deltaOne;
+
     public DoubleLeafComparator(LeafReaderContext context) throws IOException {
       super(context);
+      deltaOne = new byte[Double.BYTES];
+      DoublePoint.encodeDimension(1d, deltaOne, 0);

Review Comment:
   addressed in 
[ef9f917](https://github.com/apache/lucene/pull/12405/commits/ef9f9173bbba04871dd489187cbdc26505d64418)



-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to