From e63135a59f22b4347ff498f426ed3ad31da4c230 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Sat, 10 Jun 2006 16:05:12 +0000 Subject: [PATCH] new OpenBitSet, BitDocSet changes to use it, HashDocSet size params moved to the DocSetHitCollector: SOLR-15 git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@413324 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 3 + build.xml | 2 +- src/apps/SolrTest/solr/conf/solrconfig.xml | 3 +- .../org/apache/solr/schema/IndexSchema.java | 7 +- .../org/apache/solr/search/BitDocSet.java | 73 +- src/java/org/apache/solr/search/DocSet.java | 16 +- .../solr/search/DocSetHitCollector.java | 117 +-- .../org/apache/solr/search/HashDocSet.java | 35 +- .../apache/solr/search/SolrIndexSearcher.java | 84 +- .../apache/solr/search/test/TestDocSet.java | 15 +- .../apache/solr/tst/TestRequestHandler.java | 7 +- .../org/apache/solr/util/BitSetIterator.java | 139 ++++ src/java/org/apache/solr/util/BitUtil.java | 783 ++++++++++++++++++ src/java/org/apache/solr/util/OpenBitSet.java | 692 ++++++++++++++++ .../org/apache/solr/search/TestDocSet.java | 88 ++ src/test/org/apache/solr/util/BitSetPerf.java | 177 ++++ .../org/apache/solr/util/TestOpenBitSet.java | 143 ++++ src/test/test-files/solr/conf/solrconfig.xml | 3 +- 18 files changed, 2217 insertions(+), 170 deletions(-) create mode 100644 src/java/org/apache/solr/util/BitSetIterator.java create mode 100644 src/java/org/apache/solr/util/BitUtil.java create mode 100644 src/java/org/apache/solr/util/OpenBitSet.java create mode 100644 src/test/org/apache/solr/search/TestDocSet.java create mode 100644 src/test/org/apache/solr/util/BitSetPerf.java create mode 100644 src/test/org/apache/solr/util/TestOpenBitSet.java diff --git a/CHANGES.txt b/CHANGES.txt index 4a676ddb7f0..b667825c293 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -29,6 +29,9 @@ Optimizations single lucene query. 2. BitDocSet.intersectionSize(HashDocSet) no longer generates an intermediate set + 3. OpenBitSet completed, replaces BitSet as the implementation for BitDocSet. + Iteration is faster, and BitDocSet.intersectionSize(BitDocSet) + is between 3 and 4 times faster. (yonik, SOLR-15) Bug Fixes 1. Fixed delete-by-id for field types who's indexed form is different diff --git a/build.xml b/build.xml index bb2c889b5fd..22cb714b580 100644 --- a/build.xml +++ b/build.xml @@ -174,7 +174,7 @@ depends="compileTests" > - + diff --git a/src/apps/SolrTest/solr/conf/solrconfig.xml b/src/apps/SolrTest/solr/conf/solrconfig.xml index b167e0323e2..0bfd47c7541 100644 --- a/src/apps/SolrTest/solr/conf/solrconfig.xml +++ b/src/apps/SolrTest/solr/conf/solrconfig.xml @@ -118,7 +118,8 @@ 10 - + + +