浏览代码

Update rescoring docs in respect to sort (#20477)

* Update rescoring docs in respect to sort

If sort is present in a query the rescore query is not executed. As long as this feature is neither implemented (see discussion in #6788) nor  the combination of sort and rescoring raises an error, we should warn the user in the documentation about this.

* Missed a dot
Tobias Günther 9 年之前
父节点
当前提交
3a7a437594
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      docs/reference/search/request/rescore.asciidoc

+ 3 - 1
docs/reference/search/request/rescore.asciidoc

@@ -12,9 +12,11 @@ A `rescore` request is executed on each shard before it returns its
 results to be sorted by the node handling the overall search request.
 
 Currently the rescore API has only one implementation: the query
-rescorer, which uses a query to tweak the scoring. In the future, 
+rescorer, which uses a query to tweak the scoring. In the future,
 alternative rescorers may be made available, for example, a pair-wise rescorer.
 
+NOTE: the `rescore` phase is not executed when <<search-request-sort,`sort`>> is used.
+
 NOTE: when exposing pagination to your users, you should not change
 `window_size` as you step through each page (by passing different
 `from` values) since that can alter the top hits causing results to