don't use multiplier in doc count for big/medium terms

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1391906 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-09-29 22:17:02 +00:00
parent 56c6a591d7
commit 42fcded2b7
1 changed files with 6 additions and 2 deletions

View File

@ -202,13 +202,17 @@ public abstract class BasePostingsFormatTestCase extends LuceneTestCase {
if (numBigTerms == 0 || (random().nextInt(10) == 3 && numBigTerms < 2)) { if (numBigTerms == 0 || (random().nextInt(10) == 3 && numBigTerms < 2)) {
// Make at least 1 big term, then maybe (~10% // Make at least 1 big term, then maybe (~10%
// chance) make another: // chance) make another:
numDocs = RANDOM_MULTIPLIER * _TestUtil.nextInt(random(), 50000, 70000); // TODO: put multplier back, if we can fix OOMEs:
//numDocs = RANDOM_MULTIPLIER * _TestUtil.nextInt(random(), 50000, 70000);
numDocs = _TestUtil.nextInt(random(), 50000, 70000);
numBigTerms++; numBigTerms++;
term = "big_" + term; term = "big_" + term;
} else if (numMediumTerms == 0 || (random().nextInt(10) == 3 && numMediumTerms < 5)) { } else if (numMediumTerms == 0 || (random().nextInt(10) == 3 && numMediumTerms < 5)) {
// Make at least 1 medium term, then maybe (~10% // Make at least 1 medium term, then maybe (~10%
// chance) make up to 4 more: // chance) make up to 4 more:
numDocs = RANDOM_MULTIPLIER * _TestUtil.nextInt(random(), 3000, 6000); // TODO: put multplier back, if we can fix OOMEs:
//numDocs = RANDOM_MULTIPLIER * _TestUtil.nextInt(random(), 3000, 6000);
numDocs = _TestUtil.nextInt(random(), 3000, 6000);
numMediumTerms++; numMediumTerms++;
term = "medium_" + term; term = "medium_" + term;
} else if (random().nextBoolean()) { } else if (random().nextBoolean()) {