Sfoglia il codice sorgente

[DOCS] Fix broken links for ES API docs move (#44279)

* [DOCS] Fix broken links for ES API docs move

Co-Authored-By: Lisa Cawley <lcawley@elastic.co>
James Rodewig 6 anni fa
parent
commit
3bdd2f4432

+ 1 - 1
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

+ 3 - 3
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].

+ 2 - 2
docs/painless/painless-contexts.asciidoc

@@ -23,7 +23,7 @@ specialized code may define new ways to use a Painless script.
 | Reindex                           | <<painless-reindex-context, Painless Documentation>>
                                     | {ref}/docs-reindex.html[Elasticsearch Documentation]
 | Sort                              | <<painless-sort-context, Painless Documentation>>
-                                    | {ref}/search-request-sort.html[Elasticsearch Documentation]
+                                    | {ref}/search-request-body.html#search-request-sort[Elasticsearch Documentation]
 | Similarity                        | <<painless-similarity-context, Painless Documentation>>
                                     | {ref}/index-modules-similarity.html[Elasticsearch Documentation]
 | Weight                            | <<painless-weight-context, Painless Documentation>>
@@ -31,7 +31,7 @@ specialized code may define new ways to use a Painless script.
 | Score                             | <<painless-score-context, Painless Documentation>>
                                     | {ref}/query-dsl-function-score-query.html[Elasticsearch Documentation]
 | Field                             | <<painless-field-context, Painless Documentation>>
-                                    | {ref}/search-request-script-fields.html[Elasticsearch Documentation]
+                                    | {ref}/search-request-body.html#search-request-script-fields[Elasticsearch Documentation]
 | Filter                            | <<painless-filter-context, Painless Documentation>>
                                     | {ref}/query-dsl-script-query.html[Elasticsearch Documentation]
 | Minimum should match              | <<painless-min-should-match-context, Painless Documentation>>

+ 1 - 1
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*

+ 1 - 1
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*
 

+ 1 - 1
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 <<search-request-script-fields,Script fields>>.
 
 You can preview the contents of the {dfeed} by using the following API:
 

+ 1 - 1
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-search, search>> 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.

+ 1 - 1
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

+ 1 - 1
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.