diff --git a/docs/java-rest/high-level/document/multi-get.asciidoc b/docs/java-rest/high-level/document/multi-get.asciidoc index ca26139d2305..eade0ea06388 100644 --- a/docs/java-rest/high-level/document/multi-get.asciidoc +++ b/docs/java-rest/high-level/document/multi-get.asciidoc @@ -65,7 +65,7 @@ include-tagged::{doc-tests-file}[{api}-request-item-extras] <2> Version <3> Version type -{ref}/search-request-preference.html[`preference`], +{ref}/search-request-body.html#search-request-preference[`preference`], {ref}/docs-get.html#realtime[`realtime`] and {ref}/docs-get.html#get-refresh[`refresh`] can be set on the main request but diff --git a/docs/java-rest/high-level/search/search.asciidoc b/docs/java-rest/high-level/search/search.asciidoc index 1c454ce6ba14..f555ca57f103 100644 --- a/docs/java-rest/high-level/search/search.asciidoc +++ b/docs/java-rest/high-level/search/search.asciidoc @@ -430,7 +430,7 @@ include-tagged::{doc-tests-file}[{api}-request-profiling-queries-results] <3> Retrieve the time in millis spent executing the Lucene query <4> Retrieve the profile results for the sub-queries (if any) -The Rest API documentation contains more information about {ref}/search-profile-queries.html[Profiling Queries] with +The Rest API documentation contains more information about {ref}/search-profile.html#search-profile-queries[Profiling Queries] with a description of the query profiling information. The `QueryProfileShardResult` also gives access to the profiling information for the Lucene collectors: @@ -445,7 +445,7 @@ include-tagged::{doc-tests-file}[{api}-request-profiling-queries-collectors] <4> Retrieve the profile results for the sub-collectors (if any) The Rest API documentation contains more information about profiling information -for Lucene collectors. See {ref}/search-profile-queries.html[Profiling queries]. +for Lucene collectors. See {ref}/search-profile.html#search-profile-queries[Profiling queries]. In a very similar manner to the query tree execution, the `QueryProfileShardResult` objects gives access to the detailed aggregations tree execution: @@ -461,4 +461,4 @@ include-tagged::{doc-tests-file}[{api}-request-profiling-aggs] <5> Retrieve the profile results for the sub-aggregations (if any) The Rest API documentation contains more information about -{ref}/search-profile-aggregations.html[Profiling aggregations]. +{ref}/search-profile.html#search-profile-aggregations[Profiling aggregations]. diff --git a/docs/painless/painless-contexts.asciidoc b/docs/painless/painless-contexts.asciidoc index ccc9e3ac4db2..550d0c28b5a1 100644 --- a/docs/painless/painless-contexts.asciidoc +++ b/docs/painless/painless-contexts.asciidoc @@ -23,7 +23,7 @@ specialized code may define new ways to use a Painless script. | Reindex | <> | {ref}/docs-reindex.html[Elasticsearch Documentation] | Sort | <> - | {ref}/search-request-sort.html[Elasticsearch Documentation] + | {ref}/search-request-body.html#search-request-sort[Elasticsearch Documentation] | Similarity | <> | {ref}/index-modules-similarity.html[Elasticsearch Documentation] | Weight | <> @@ -31,7 +31,7 @@ specialized code may define new ways to use a Painless script. | Score | <> | {ref}/query-dsl-function-score-query.html[Elasticsearch Documentation] | Field | <> - | {ref}/search-request-script-fields.html[Elasticsearch Documentation] + | {ref}/search-request-body.html#search-request-script-fields[Elasticsearch Documentation] | Filter | <> | {ref}/query-dsl-script-query.html[Elasticsearch Documentation] | Minimum should match | <> diff --git a/docs/painless/painless-contexts/painless-field-context.asciidoc b/docs/painless/painless-contexts/painless-field-context.asciidoc index 5a95e88c6846..b4e11ac5fda7 100644 --- a/docs/painless/painless-contexts/painless-field-context.asciidoc +++ b/docs/painless/painless-contexts/painless-field-context.asciidoc @@ -2,7 +2,7 @@ === Field context Use a Painless script to create a -{ref}/search-request-script-fields.html[script field] to return +{ref}/search-request-body.html#search-request-script-fields[script field] to return a customized value for each document in the results of a query. *Variables* diff --git a/docs/painless/painless-contexts/painless-sort-context.asciidoc b/docs/painless/painless-contexts/painless-sort-context.asciidoc index 4a7743dc4880..a5addebd9735 100644 --- a/docs/painless/painless-contexts/painless-sort-context.asciidoc +++ b/docs/painless/painless-contexts/painless-sort-context.asciidoc @@ -2,7 +2,7 @@ === Sort context Use a Painless script to -{ref}/search-request-sort.html[sort] the documents in a query. +{ref}/search-request-body.html#search-request-sort[sort] the documents in a query. *Variables* diff --git a/docs/reference/ml/transforms.asciidoc b/docs/reference/ml/transforms.asciidoc index cfbbfb19537b..d17f176debcb 100644 --- a/docs/reference/ml/transforms.asciidoc +++ b/docs/reference/ml/transforms.asciidoc @@ -151,7 +151,7 @@ function. The `datafeed-test1` {dfeed} defines the script field. It contains a script that adds two fields in the document to produce a "total" error count. The syntax for the `script_fields` property is identical to that used by {es}. -For more information, see {ref}/search-request-script-fields.html[Script Fields]. +For more information, see <>. You can preview the contents of the {dfeed} by using the following API: diff --git a/x-pack/docs/en/watcher/customizing-watches.asciidoc b/x-pack/docs/en/watcher/customizing-watches.asciidoc index 895e9a89cc01..78efea7a6c9d 100644 --- a/x-pack/docs/en/watcher/customizing-watches.asciidoc +++ b/x-pack/docs/en/watcher/customizing-watches.asciidoc @@ -47,7 +47,7 @@ You can use the `search` input to load Elasticsearch search results as the watch initial payload. A <> input contains a `request` object that specifies the -indices you want to search, the {ref}/search-request-search-type.html[search type], +indices you want to search, the {ref}/search-request-body.html#search-request-search-type[search type], and the search request body. The `body` field of a search input is the same as the body of an Elasticsearch `_search` request, making the full Elasticsearch Query DSL available for you to use. diff --git a/x-pack/docs/en/watcher/input/search.asciidoc b/x-pack/docs/en/watcher/input/search.asciidoc index d4548a159a64..435be1c56158 100644 --- a/x-pack/docs/en/watcher/input/search.asciidoc +++ b/x-pack/docs/en/watcher/input/search.asciidoc @@ -9,7 +9,7 @@ supported attributes. In the search input's `request` object, you specify: * The indices you want to search -* The {ref}/search-request-search-type.html[search type] +* The {ref}/search-request-body.html#search-request-search-type[search type] * The search request body The search request body supports the full Elasticsearch Query DSL--it's the diff --git a/x-pack/docs/en/watcher/transform/search.asciidoc b/x-pack/docs/en/watcher/transform/search.asciidoc index d7f468f18318..c051cbee24dc 100644 --- a/x-pack/docs/en/watcher/transform/search.asciidoc +++ b/x-pack/docs/en/watcher/transform/search.asciidoc @@ -52,7 +52,7 @@ The following table lists all available settings for the search transform: |====== | Name |Required | Default | Description -| `request.search_type` | no | query_then_fetch | The search {ref}/search-request-search-type.html[type]. +| `request.search_type` | no | query_then_fetch | The search {ref}/search-request-body.html#search-request-search-type[type]. | `request.indices` | no | all indices | One or more indices to search on.