mirror of https://github.com/apache/lucene.git
SOLR-8481: TestSearchPerf no longer needs to duplicate SolrIndexSearcher.(NO_CHECK_QCACHE|NO_CHECK_FILTERCACHE)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1722869 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7ba2b5d7d8
commit
817fabc70c
|
@ -421,6 +421,9 @@ Other Changes
|
|||
* SOLR-8455: RecovertStrategy logging improvements and sleep-between-recovery-attempts bug fix.
|
||||
(Shai Erera)
|
||||
|
||||
* SOLR-8481: TestSearchPerf no longer needs to duplicate SolrIndexSearcher.(NO_CHECK_QCACHE|NO_CHECK_FILTERCACHE)
|
||||
(Christine Poerschke)
|
||||
|
||||
================== 5.4.0 ==================
|
||||
|
||||
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release
|
||||
|
|
|
@ -163,15 +163,9 @@ public class TestSearchPerf extends AbstractSolrTestCase {
|
|||
|
||||
final RTimer timer = new RTimer();
|
||||
|
||||
// These aren't public in SolrIndexSearcher
|
||||
int NO_CHECK_QCACHE = 0x80000000;
|
||||
int GET_DOCSET = 0x40000000;
|
||||
int NO_CHECK_FILTERCACHE = 0x20000000;
|
||||
int GET_SCORES = 0x01;
|
||||
|
||||
int ret = 0;
|
||||
for (int i=0; i<iter; i++) {
|
||||
DocList l = searcher.getDocList(q, filt, (Sort)null, 0, 10, (cacheQuery?0:NO_CHECK_QCACHE)|(cacheFilt?0:NO_CHECK_FILTERCACHE) );
|
||||
DocList l = searcher.getDocList(q, filt, (Sort)null, 0, 10, (cacheQuery?0:SolrIndexSearcher.NO_CHECK_QCACHE)|(cacheFilt?0:SolrIndexSearcher.NO_CHECK_FILTERCACHE) );
|
||||
ret += l.matches();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue