From 3872d3bfcc13e88177fcfde61589e5bda6d73103 Mon Sep 17 00:00:00 2001 From: Mark Harwood Date: Tue, 9 Oct 2007 21:40:45 +0000 Subject: [PATCH] Updated hashcode/equals to test all fields git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@583305 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/lucene/search/DuplicateFilter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/queries/src/java/org/apache/lucene/search/DuplicateFilter.java b/contrib/queries/src/java/org/apache/lucene/search/DuplicateFilter.java index ba8dffde32d..d3fad1ca78f 100644 --- a/contrib/queries/src/java/org/apache/lucene/search/DuplicateFilter.java +++ b/contrib/queries/src/java/org/apache/lucene/search/DuplicateFilter.java @@ -215,6 +215,7 @@ public class DuplicateFilter extends Filter return false; DuplicateFilter other = (DuplicateFilter)obj; return keepMode == other.keepMode && + processingMode == other.processingMode && (fieldName == other.fieldName || (fieldName != null && fieldName.equals(other.fieldName))); } @@ -224,6 +225,7 @@ public class DuplicateFilter extends Filter { int hash = 217; hash = 31 * hash + keepMode; + hash = 31 * hash + processingMode; hash = 31 * hash + fieldName.hashCode(); return hash; }