Skip to content

Commit 15675cc

Browse files
committed
[bugfix] Consider more variables in the equality comparison
1 parent e99a748 commit 15675cc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • extensions/indexes/lucene/src/main/java/org/exist/indexing/lucene

extensions/indexes/lucene/src/main/java/org/exist/indexing/lucene/LuceneMatch.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ public boolean equals(final Object other) {
9999

100100
if (other instanceof LuceneMatch) {
101101
final LuceneMatch lm = (LuceneMatch) other;
102-
return getNodeId().equals(lm.getNodeId())
103-
&& query.equals(lm.query);
102+
return luceneDocId == lm.luceneDocId
103+
&& query.equals(lm.query)
104+
&& super.equals(lm);
104105
} else {
105106
return false;
106107
}

0 commit comments

Comments
 (0)