Skip to content

Commit 47ecb60

Browse files
committed
[bugfix] Consider more variables in the equality comparison
1 parent 60def8d commit 47ecb60

File tree

1 file changed

+3
-2
lines changed
  • extensions/indexes/lucene/src/main/java/org/exist/indexing/lucene

1 file changed

+3
-2
lines changed

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
@@ -123,8 +123,9 @@ public boolean equals(final Object other) {
123123

124124
if (other instanceof LuceneMatch) {
125125
final LuceneMatch lm = (LuceneMatch) other;
126-
return getNodeId().equals(lm.getNodeId())
127-
&& query.equals(lm.query);
126+
return luceneDocId == lm.luceneDocId
127+
&& query.equals(lm.query)
128+
&& super.equals(lm);
128129
} else {
129130
return false;
130131
}

0 commit comments

Comments
 (0)