Skip to content

Commit f0b7d89

Browse files
committed
Tweak updated docs
1 parent d3d2ec4 commit f0b7d89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/reference/elasticsearch/mapping-reference/pattern-text.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ In both cases, all queries return a constant score of 1.0.
4646

4747
## Index sorting for improved compression
4848
The compression provided by `pattern_text` can be significantly improved if the index is sorted by the `template_id` field.
49-
This sorting is not applied by default, but can be enabled for the `message` field of logs-mode indices (assuming it is of type `pattern_text`) by setting the index setting `index.logsdb.default_sort_on_message_template` to `true`.
50-
This will cause the index to be sorted by `hostname` (if present), then `message.template_id`, and finally by `@timestamp`.
51-
If the index is not logs-mode or the `pattern_text` field is named something other than `message`, index sorting can still be manually applied as shown in the following example.
49+
This sorting is not applied by default, but can be enabled for the `message` field of LogsDB indices (assuming it is of type `pattern_text`) by setting the index setting `index.logsdb.default_sort_on_message_template` to `true`.
50+
This will cause the index to be sorted by `host.name` (if present), then `message.template_id`, and finally by `@timestamp`.
51+
If the index is not LogsDB or the `pattern_text` field is named something other than `message`, index sorting can still be manually applied as shown in the following example.
5252

5353
```console
5454
PUT logs

0 commit comments

Comments
 (0)