Skip to content

Commit 5bcd170

Browse files
[DOCS] Added additional context to page (#120569)
1 parent 2258911 commit 5bcd170

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/reference/search/search-your-data/sort-search-results.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Allows you to add one or more sorts on specific fields. Each sort can be
55
reversed as well. The sort is defined on a per field level, with special
66
field name for `_score` to sort by score, and `_doc` to sort by index order.
77

8+
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.
9+
810
Assuming the following index mapping:
911

1012
[source,console]

0 commit comments

Comments
 (0)