Skip to content

Commit 12d25c9

Browse files
committed
remove compression and constant copied code
1 parent 737d802 commit 12d25c9

File tree

2 files changed

+5
-84
lines changed

2 files changed

+5
-84
lines changed

server/src/main/java/org/elasticsearch/index/codec/postings/CompressionAlgorithm.java

Lines changed: 0 additions & 76 deletions
This file was deleted.

server/src/main/java/org/elasticsearch/index/codec/postings/Lucene90BlockTreeTermsWriter.java

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020
package org.elasticsearch.index.codec.postings;
2121

22+
import org.apache.lucene.backward_codecs.lucene90.blocktree.CompressionAlgorithm;
2223
import org.apache.lucene.backward_codecs.lucene90.blocktree.FieldReader;
2324
import org.apache.lucene.backward_codecs.lucene90.blocktree.Lucene90BlockTreeTermsReader;
2425
import org.apache.lucene.codecs.BlockTermState;
@@ -61,6 +62,10 @@
6162
import java.util.List;
6263
import java.util.Objects;
6364

65+
import static org.apache.lucene.backward_codecs.lucene90.blocktree.Lucene90BlockTreeTermsReader.TERMS_INDEX_CODEC_NAME;
66+
import static org.apache.lucene.backward_codecs.lucene90.blocktree.Lucene90BlockTreeTermsReader.TERMS_INDEX_EXTENSION;
67+
import static org.apache.lucene.backward_codecs.lucene90.blocktree.Lucene90BlockTreeTermsReader.TERMS_META_CODEC_NAME;
68+
import static org.apache.lucene.backward_codecs.lucene90.blocktree.Lucene90BlockTreeTermsReader.TERMS_META_EXTENSION;
6469
import static org.apache.lucene.util.fst.FSTCompiler.getOnHeapReaderWriter;
6570

6671
/*
@@ -242,14 +247,6 @@ public final class Lucene90BlockTreeTermsWriter extends FieldsConsumer {
242247
static final String TERMS_EXTENSION = "tim";
243248
static final String TERMS_CODEC_NAME = "BlockTreeTermsDict";
244249

245-
/** Extension of terms index file */
246-
static final String TERMS_INDEX_EXTENSION = "tip";
247-
static final String TERMS_INDEX_CODEC_NAME = "BlockTreeTermsIndex";
248-
249-
/** Extension of terms meta file */
250-
static final String TERMS_META_EXTENSION = "tmd";
251-
static final String TERMS_META_CODEC_NAME = "BlockTreeTermsMeta";
252-
253250
// public static boolean DEBUG = false;
254251
// public static boolean DEBUG2 = false;
255252

0 commit comments

Comments
 (0)