- 
                Notifications
    You must be signed in to change notification settings 
- Fork 25.6k
Open
coderabbit-test/elasticsearch
#2Labels
:StorageEngine/MappingThe storage related side of mappingsThe storage related side of mappingsTeam:StorageEngine
Description
pattern_text achieves better compression if the index is sorted by the template_id of the largest pattern_text field. Sorting can be done manually with the index.sort.* settings, but if possible we should sort automatically.
Specifically, we should do the following:
- if an index contains a field called messageof typepattern_text:- if mode=logsdb and there is a host.name field: sort by host.name, message.template_id, timestamp
- else sort by message.template_id, timestamp
 
Depends on #129062
Metadata
Metadata
Assignees
Labels
:StorageEngine/MappingThe storage related side of mappingsThe storage related side of mappingsTeam:StorageEngine