From 3c7c44fc110ade5a8eb843634215cd8a52287e02 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Wed, 7 Jun 2006 20:26:14 +0000 Subject: [PATCH] fix addUnique and corrupt size in BitDocSet git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@412524 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/solr/search/BitDocSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/solr/search/BitDocSet.java b/src/java/org/apache/solr/search/BitDocSet.java index ebc01749534..fe44412f27c 100644 --- a/src/java/org/apache/solr/search/BitDocSet.java +++ b/src/java/org/apache/solr/search/BitDocSet.java @@ -85,8 +85,8 @@ public class BitDocSet extends DocSetBase { } public void addUnique(int doc) { - size++; bits.set(doc); + size=-1; // invalidate size } public int size() {