mirror of https://github.com/apache/lucene.git
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:
parent
8f21ee61cb
commit
052bc32ae2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue