don't make such huge (up to 800 bytes) strings when making random docvalues

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1304281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-03-23 11:19:40 +00:00
parent 8f21ee61cb
commit 052bc32ae2
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ public class RandomIndexWriter implements Closeable {
* this might change if I use r.nextInt(x)
* maybe we can peek at the existing files here?
*/
fixedBytesLength = 37;
fixedBytesLength = 17;
docValuesFieldPrefix = r.nextLong();
switchDoDocValues();
}
@ -196,7 +196,7 @@ public class RandomIndexWriter implements Closeable {
case BYTES_VAR_DEREF:
case BYTES_VAR_STRAIGHT:
case BYTES_VAR_SORTED:
f = new DocValuesField(name, new BytesRef(_TestUtil.randomUnicodeString(random, 200)), type);
f = new DocValuesField(name, new BytesRef(_TestUtil.randomUnicodeString(random, 20)), type);
break;
case FLOAT_32:
f = new DocValuesField(name, random.nextFloat(), type);