Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.elasticsearch.index.mapper.IdFieldMapper;
import org.elasticsearch.index.mapper.Mapper;
import org.elasticsearch.index.mapper.MapperService;
import org.elasticsearch.index.mapper.SeqNoFieldMapper;
import org.elasticsearch.index.mapper.vectors.DenseVectorFieldMapper;

/**
Expand Down Expand Up @@ -122,9 +123,13 @@ boolean useTSDBDocValuesFormat(final String field) {
}

private boolean excludeFields(String fieldName) {
// TODO: should we just allow all fields to use tsdb doc values codec?
// Avoid using tsdb codec for fields like _seq_no, _primary_term.
// But _tsid and _ts_routing_hash should always use the tsdb codec.
return fieldName.startsWith("_") && fieldName.equals("_tsid") == false && fieldName.equals("_ts_routing_hash") == false;
return fieldName.startsWith("_")
&& fieldName.equals("_tsid") == false
&& fieldName.equals("_ts_routing_hash") == false
&& fieldName.equals(SeqNoFieldMapper.NAME) == false;
}

private boolean isTimeSeriesModeIndex() {
Expand Down