LUCENE-2831: remove another erroneous use of a non-atomic context

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1056589 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2011-01-08 01:45:08 +00:00
parent 071104c07d
commit abfa458e2a
1 changed files with 0 additions and 16 deletions

View File

@ -898,22 +898,6 @@ public class SolrIndexSearcher extends IndexSearcher implements SolrInfoMBean {
return positive ? getDocSetNC(absQ,filter) : filter.andNot(getPositiveDocSet(absQ)); 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> * Returns documents matching both <code>query</code> and <code>filter</code>
* and sorted by <code>sort</code>. * and sorted by <code>sort</code>.