mirror of https://github.com/apache/lucene.git
FOLR-5725: test fix for miserable differnce between cloud and non-cloud
facets - when facet.limit=0&facet.missing=true the former responds with missing counts, but later doesn't.
This commit is contained in:
parent
e026ac4fe5
commit
9ac5c1cf14
|
@ -133,7 +133,16 @@ public class DistributedFacetExistsSmallTest extends BaseDistributedSearchTestCa
|
|||
params.add("facet.mincount", rand.nextBoolean() ? "0": "1" );
|
||||
}
|
||||
|
||||
final boolean shardRespondsWithMissingEvenLimitIsZero =
|
||||
params.getBool("facet.missing", false) && params.getInt("facet.limit", 100)==0;
|
||||
// skip miss count check, here cloud is different to non-distrib
|
||||
if (shardRespondsWithMissingEvenLimitIsZero ) {
|
||||
handle.put(null, SKIP);
|
||||
}
|
||||
query(params);
|
||||
if (shardRespondsWithMissingEvenLimitIsZero ) {
|
||||
handle.remove(null);
|
||||
}
|
||||
}
|
||||
|
||||
private void checkInvalidMincount() throws SolrServerException, IOException {
|
||||
|
|
Loading…
Reference in New Issue