LUCENE-9705: Correct the format names in Lucene90StoredFieldsFormat (#74)

We accidentally kept the old names when creating the new format.
This commit is contained in:
Julie Tibshirani 2021-04-09 16:19:43 -07:00 committed by GitHub
parent e510ef11c2
commit c587677150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ import org.apache.lucene.store.IOContext;
import org.apache.lucene.util.packed.DirectMonotonicWriter; import org.apache.lucene.util.packed.DirectMonotonicWriter;
/** /**
* Lucene 8.7 stored fields format. * Lucene 9.0 stored fields format.
* *
* <p><b>Principle</b> * <p><b>Principle</b>
* *
@ -158,10 +158,10 @@ public class Lucene90StoredFieldsFormat extends StoredFieldsFormat {
switch (mode) { switch (mode) {
case BEST_SPEED: case BEST_SPEED:
return new Lucene90CompressingStoredFieldsFormat( return new Lucene90CompressingStoredFieldsFormat(
"Lucene87StoredFieldsFastData", BEST_SPEED_MODE, BEST_SPEED_BLOCK_LENGTH, 1024, 10); "Lucene90StoredFieldsFastData", BEST_SPEED_MODE, BEST_SPEED_BLOCK_LENGTH, 1024, 10);
case BEST_COMPRESSION: case BEST_COMPRESSION:
return new Lucene90CompressingStoredFieldsFormat( return new Lucene90CompressingStoredFieldsFormat(
"Lucene87StoredFieldsHighData", "Lucene90StoredFieldsHighData",
BEST_COMPRESSION_MODE, BEST_COMPRESSION_MODE,
BEST_COMPRESSION_BLOCK_LENGTH, BEST_COMPRESSION_BLOCK_LENGTH,
4096, 4096,