You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by yo...@apache.org on 2011/01/08 02:45:08 UTC
svn commit: r1056589 -
/lucene/dev/trunk/solr/src/java/org/apache/solr/search/SolrIndexSearcher.java
Author: yonik
Date: Sat Jan 8 01:45:08 2011
New Revision: 1056589
URL: http://svn.apache.org/viewvc?rev=1056589&view=rev
Log:
LUCENE-2831: remove another erroneous use of a non-atomic context
Modified:
lucene/dev/trunk/solr/src/java/org/apache/solr/search/SolrIndexSearcher.java
Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/search/SolrIndexSearcher.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/search/SolrIndexSearcher.java?rev=1056589&r1=1056588&r2=1056589&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/search/SolrIndexSearcher.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/search/SolrIndexSearcher.java Sat Jan 8 01:45:08 2011
@@ -898,22 +898,6 @@ public class SolrIndexSearcher extends I
return positive ? getDocSetNC(absQ,filter) : filter.andNot(getPositiveDocSet(absQ));
}
-
- /**
- * Converts a filter into a DocSet.
- * This method is not cache-aware and no caches are checked.
- */
- public DocSet convertFilter(Filter lfilter) throws IOException {
- DocIdSet docSet = lfilter.getDocIdSet(this.reader.getTopReaderContext());
- OpenBitSet obs = new OpenBitSet();
- DocIdSetIterator it = docSet.iterator();
- int doc;
- while((doc = it.nextDoc()) != DocIdSetIterator.NO_MORE_DOCS) {
- obs.fastSet(doc);
- }
- return new BitDocSet(obs);
- }
-
/**
* Returns documents matching both <code>query</code> and <code>filter</code>
* and sorted by <code>sort</code>.