[ https://issues.apache.org/jira/browse/LUCENE-9451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17190755#comment-17190755 ]
ASF subversion and git services commented on LUCENE-9451: --------------------------------------------------------- Commit 6c94ca9cb33795cdc29797ff2d17f1869813d3f9 in lucene-solr's branch refs/heads/master from Mike Drob [ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=6c94ca9 ] LUCENE-9451 Sort.rewrite does not always return this when unchanged (#1731) > Sort.rewrite doesn't always return this when unchanged > ------------------------------------------------------ > > Key: LUCENE-9451 > URL: https://issues.apache.org/jira/browse/LUCENE-9451 > Project: Lucene - Core > Issue Type: Bug > Components: core/search > Affects Versions: 8.7 > Reporter: Mike Drob > Assignee: Mike Drob > Priority: Major > Time Spent: 40m > Remaining Estimate: 0h > > Sort.rewrite doesn't always return {{this}} as advertised in the Javadoc even > if the underlying fields are unchanged. This is because the comparison uses > reference equality. > There are two solutions we can do here, 1) switch from reference equality to > object equality, and 2) fix some of the underlying sort fields to not create > unnecessary objects. > cc: [~jpountz] [~romseygeek] -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org