[DOCS] Added additional context to page (#120569)

This commit is contained in:
Kofi B 2025-01-29 03:48:25 -05:00 committed by GitHub
parent 2258911112
commit 5bcd170a0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,8 @@ Allows you to add one or more sorts on specific fields. Each sort can be
reversed as well. The sort is defined on a per field level, with special reversed as well. The sort is defined on a per field level, with special
field name for `_score` to sort by score, and `_doc` to sort by index order. field name for `_score` to sort by score, and `_doc` to sort by index order.
To optimize sorting performance, avoid sorting by <<text,`text`>>fields; instead, use <<keyword, `keyword`>> or <<number, `numerical`>> fields. Additionally, you can improve performance by enabling pre-sorting at index time using <<index-modules-index-sorting, index sorting>>. While this can speed up query-time sorting, it may reduce indexing performance and increase memory usage.
Assuming the following index mapping: Assuming the following index mapping:
[source,console] [source,console]