mirror of https://github.com/apache/lucene.git
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:
parent
071104c07d
commit
abfa458e2a
|
@ -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>.
|
||||||
|
|
Loading…
Reference in New Issue