iprithv commented on code in PR #5339:
URL: https://github.com/apache/solr/pull/5339#discussion_r4590047175
##########
solr/core/src/java/org/apache/solr/update/processor/TextProfileSignature.java:
##########
@@ -151,7 +151,11 @@ public String toString() {
private static class TokenComparator implements Comparator<Token> {
@Override
public int compare(Token t1, Token t2) {
- return t2.cnt - t1.cnt;
+ int c = Integer.compare(t2.cnt, t1.cnt);
+ if (c != 0) {
+ return c;
+ }
+ return t1.val.compareTo(t2.val);
Review Comment:
added an upgrade note in major-changes-in-solr-11 covering the signature
change for tied tokens, overwriteDupes mismatch, uniqueKey ID risk, and when to
reindex.
--
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]