File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
server/src/main/java/org/elasticsearch/index/codec Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1515import org .apache .lucene .codecs .lucene90 .Lucene90DocValuesFormat ;
1616import org .apache .lucene .codecs .lucene99 .Lucene99HnswVectorsFormat ;
1717import org .elasticsearch .common .util .BigArrays ;
18+ import org .elasticsearch .common .util .FeatureFlag ;
1819import org .elasticsearch .index .IndexMode ;
1920import org .elasticsearch .index .IndexSettings ;
2021import org .elasticsearch .index .IndexVersions ;
3435 */
3536public class PerFieldFormatSupplier {
3637
38+ private static final FeatureFlag SEQNO_FIELD_USE_TSDB_DOC_VALUES_FORMAT = new FeatureFlag ("seqno_field_use_tsdb_doc_values_format" );
39+
3740 private static final DocValuesFormat docValuesFormat = new Lucene90DocValuesFormat ();
3841 private static final KnnVectorsFormat knnVectorsFormat = new Lucene99HnswVectorsFormat ();
3942 private static final ES819TSDBDocValuesFormat tsdbDocValuesFormat = new ES819TSDBDocValuesFormat ();
@@ -129,7 +132,7 @@ private boolean excludeFields(String fieldName) {
129132 return fieldName .startsWith ("_" )
130133 && fieldName .equals ("_tsid" ) == false
131134 && fieldName .equals ("_ts_routing_hash" ) == false
132- && fieldName .equals (SeqNoFieldMapper .NAME ) == false ;
135+ && ( SEQNO_FIELD_USE_TSDB_DOC_VALUES_FORMAT . isEnabled () && fieldName .equals (SeqNoFieldMapper .NAME ) == false ) ;
133136 }
134137
135138 private boolean isTimeSeriesModeIndex () {
You can’t perform that action at this time.
0 commit comments