Skip to content

Commit 125bfd3

Browse files
committed
Enable large numeric blocks for TSDB codec
1 parent e4ef300 commit 125bfd3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

server/src/main/java/org/elasticsearch/index/codec/PerFieldFormatSupplier.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ public class PerFieldFormatSupplier {
4444
private static final Set<String> INCLUDE_META_FIELDS;
4545
private static final Set<String> EXCLUDE_MAPPER_TYPES;
4646

47-
private static final boolean TSDB_USE_LARGE_NUMERIC_BLOCKS = new FeatureFlag("tsdb_large_numeric_blocks").isEnabled();
48-
4947
static {
5048
// TODO: should we just allow all fields to use tsdb doc values codec?
5149
// Avoid using tsdb codec for fields like _seq_no, _primary_term.
@@ -63,9 +61,7 @@ public class PerFieldFormatSupplier {
6361
private static final DocValuesFormat docValuesFormat = new Lucene90DocValuesFormat();
6462
private static final KnnVectorsFormat knnVectorsFormat = new ES93HnswVectorsFormat();
6563
private static final ES819TSDBDocValuesFormat tsdbDocValuesFormat = ES819TSDBDocValuesFormat.getInstance(false);
66-
private static final ES819TSDBDocValuesFormat tsdbDocValuesFormatLargeNumericBlock = ES819TSDBDocValuesFormat.getInstance(
67-
TSDB_USE_LARGE_NUMERIC_BLOCKS
68-
);
64+
private static final ES819TSDBDocValuesFormat tsdbDocValuesFormatLargeNumericBlock = ES819TSDBDocValuesFormat.getInstance(true);
6965
private static final ES812PostingsFormat es812PostingsFormat = new ES812PostingsFormat();
7066
private static final PostingsFormat completionPostingsFormat = PostingsFormat.forName("Completion101");
7167

0 commit comments

Comments
 (0)