File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
server/src/main/java/org/elasticsearch/index/codec Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 2525import org .elasticsearch .index .mapper .IdFieldMapper ;
2626import org .elasticsearch .index .mapper .Mapper ;
2727import org .elasticsearch .index .mapper .MapperService ;
28+ import org .elasticsearch .index .mapper .SeqNoFieldMapper ;
2829import org .elasticsearch .index .mapper .vectors .DenseVectorFieldMapper ;
2930
3031/**
@@ -122,9 +123,13 @@ boolean useTSDBDocValuesFormat(final String field) {
122123 }
123124
124125 private boolean excludeFields (String fieldName ) {
126+ // TODO: should we just allow all fields to use tsdb doc values codec?
125127 // Avoid using tsdb codec for fields like _seq_no, _primary_term.
126128 // But _tsid and _ts_routing_hash should always use the tsdb codec.
127- return fieldName .startsWith ("_" ) && fieldName .equals ("_tsid" ) == false && fieldName .equals ("_ts_routing_hash" ) == false ;
129+ return fieldName .startsWith ("_" )
130+ && fieldName .equals ("_tsid" ) == false
131+ && fieldName .equals ("_ts_routing_hash" ) == false
132+ && fieldName .equals (SeqNoFieldMapper .NAME ) == false ;
128133 }
129134
130135 private boolean isTimeSeriesModeIndex () {
You can’t perform that action at this time.
0 commit comments