Skip to content

Commit

Permalink
[DOCS] Added additional context to page (#120569) (#121139)
Browse files Browse the repository at this point in the history
Co-authored-by: Kofi B <[email protected]>
  • Loading branch information
leemthompo and thekofimensah authored Jan 29, 2025
1 parent 7af92f6 commit 2cbe6c9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
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:

[source,console]
Expand Down

0 comments on commit 2cbe6c9

Please sign in to comment.