diff --git a/client/rest-high-level/src/main/java/org/elasticsearch/client/IndicesClient.java b/client/rest-high-level/src/main/java/org/elasticsearch/client/IndicesClient.java
index 584bdad74502..42791b719c4e 100644
--- a/client/rest-high-level/src/main/java/org/elasticsearch/client/IndicesClient.java
+++ b/client/rest-high-level/src/main/java/org/elasticsearch/client/IndicesClient.java
@@ -569,7 +569,7 @@ public final class IndicesClient {
/**
* Initiate a synced flush manually using the synced flush API.
- * See
+ * See
* Synced flush API on elastic.co
* @param syncedFlushRequest the request
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
@@ -583,7 +583,7 @@ public final class IndicesClient {
/**
* Asynchronously initiate a synced flush manually using the synced flush API.
- * See
+ * See
* Synced flush API on elastic.co
* @param syncedFlushRequest the request
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
diff --git a/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java b/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java
index 35abf5e85180..4e1a571ec656 100644
--- a/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java
+++ b/client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java
@@ -1010,8 +1010,9 @@ public class RestHighLevelClient implements Closeable {
/**
* Executes a search using the Search Scroll API.
- * See Search Scroll
- * API on elastic.co
+ * See Search
+ * Scroll API on elastic.co
* @param searchScrollRequest the request
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
* @return the response
@@ -1024,8 +1025,9 @@ public class RestHighLevelClient implements Closeable {
/**
* Executes a search using the Search Scroll API.
- * See Search Scroll
- * API on elastic.co
+ * See Search
+ * Scroll API on elastic.co
* @param searchScrollRequest the request
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
* @return the response
@@ -1037,8 +1039,9 @@ public class RestHighLevelClient implements Closeable {
/**
* Asynchronously executes a search using the Search Scroll API.
- * See Search Scroll
- * API on elastic.co
+ * See Search
+ * Scroll API on elastic.co
* @param searchScrollRequest the request
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
* @param listener the listener to be notified upon request completion
@@ -1052,8 +1055,9 @@ public class RestHighLevelClient implements Closeable {
/**
* Asynchronously executes a search using the Search Scroll API.
- * See Search Scroll
- * API on elastic.co
+ * See Search
+ * Scroll API on elastic.co
* @param searchScrollRequest the request
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
* @param listener the listener to be notified upon request completion
@@ -1066,7 +1070,8 @@ public class RestHighLevelClient implements Closeable {
/**
* Clears one or more scroll ids using the Clear Scroll API.
- * See
+ * See
* Clear Scroll API on elastic.co
* @param clearScrollRequest the request
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
@@ -1079,7 +1084,8 @@ public class RestHighLevelClient implements Closeable {
/**
* Asynchronously clears one or more scroll ids using the Clear Scroll API.
- * See
+ * See
* Clear Scroll API on elastic.co
* @param clearScrollRequest the request
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
diff --git a/docs/java-rest/high-level/document/multi-get.asciidoc b/docs/java-rest/high-level/document/multi-get.asciidoc
index ca26139d2305..1cf487dec139 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#request-body-search-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..2ec7c3122b7a 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#profiling-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#profiling-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#profiling-aggregations[Profiling aggregations].
diff --git a/docs/painless/painless-contexts.asciidoc b/docs/painless/painless-contexts.asciidoc
index ccc9e3ac4db2..3bb3fc7d97e2 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#request-body-search-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#request-body-search-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..3a3e9fe0adb9 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#request-body-search-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..74bce44c800f 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#request-body-search-sort[sort] the documents in a query.
*Variables*
diff --git a/docs/reference/aggregations/bucket/composite-aggregation.asciidoc b/docs/reference/aggregations/bucket/composite-aggregation.asciidoc
index 0a75c5809606..44a0ac79929c 100644
--- a/docs/reference/aggregations/bucket/composite-aggregation.asciidoc
+++ b/docs/reference/aggregations/bucket/composite-aggregation.asciidoc
@@ -6,7 +6,7 @@ A multi-bucket aggregation that creates composite buckets from different sources
Unlike the other `multi-bucket` aggregation the `composite` aggregation can be used
to paginate **all** buckets from a multi-level aggregation efficiently. This aggregation
provides a way to stream **all** buckets of a specific aggregation similarly to what
-<> does for documents.
+<> does for documents.
The composite buckets are built from the combinations of the
values extracted/created for each document and each combination is considered as
diff --git a/docs/reference/aggregations/metrics/tophits-aggregation.asciidoc b/docs/reference/aggregations/metrics/tophits-aggregation.asciidoc
index 1ea38fec9657..29949bd3582c 100644
--- a/docs/reference/aggregations/metrics/tophits-aggregation.asciidoc
+++ b/docs/reference/aggregations/metrics/tophits-aggregation.asciidoc
@@ -17,15 +17,15 @@ One or more bucket aggregators determines by which properties a result set get s
The top_hits aggregation returns regular search hits, because of this many per hit features can be supported:
-* <>
-* <>
-* <>
-* <>
-* <>
-* <>
-* <>
-* <>
-* <>
+* <>
+* <>
+* <>
+* <>
+* <>
+* <>
+* <>
+* <>
+* <>
==== Example
diff --git a/docs/reference/aggregations/pipeline/bucket-sort-aggregation.asciidoc b/docs/reference/aggregations/pipeline/bucket-sort-aggregation.asciidoc
index d219e005d75d..a11da760edd0 100644
--- a/docs/reference/aggregations/pipeline/bucket-sort-aggregation.asciidoc
+++ b/docs/reference/aggregations/pipeline/bucket-sort-aggregation.asciidoc
@@ -38,7 +38,7 @@ is ascending.
[options="header"]
|===
|Parameter Name |Description |Required |Default Value
-|`sort` |The list of fields to sort on. See <> for more details. |Optional |
+|`sort` |The list of fields to sort on. See <> for more details. |Optional |
|`from` |Buckets in positions prior to the set value will be truncated. |Optional | `0`
|`size` |The number of buckets to return. Defaults to all buckets of the parent aggregation. |Optional |
|`gap_policy` |The policy to apply when gaps are found in the data (see <> for more
diff --git a/docs/reference/analysis/tokenizers/edgengram-tokenizer.asciidoc b/docs/reference/analysis/tokenizers/edgengram-tokenizer.asciidoc
index 2e3ae8b036c3..94f5930e88cf 100644
--- a/docs/reference/analysis/tokenizers/edgengram-tokenizer.asciidoc
+++ b/docs/reference/analysis/tokenizers/edgengram-tokenizer.asciidoc
@@ -10,7 +10,7 @@ Edge N-Grams are useful for _search-as-you-type_ queries.
TIP: When you need _search-as-you-type_ for text which has a widely known
order, such as movie or song titles, the
-<> is a much more efficient
+<> is a much more efficient
choice than edge N-grams. Edge N-grams have the advantage when trying to
autocomplete words that can appear in any order.
diff --git a/docs/reference/docs/concurrency-control.asciidoc b/docs/reference/docs/concurrency-control.asciidoc
index eeb5aca4ed03..fccdbe46bbd6 100644
--- a/docs/reference/docs/concurrency-control.asciidoc
+++ b/docs/reference/docs/concurrency-control.asciidoc
@@ -87,7 +87,7 @@ returns:
Note: The <> can return the `_seq_no` and `_primary_term`
-for each search hit by setting <>.
+for each search hit by setting <>.
The sequence number and the primary term uniquely identify a change. By noting down
the sequence number and primary term returned, you can make sure to only change the
diff --git a/docs/reference/docs/update.asciidoc b/docs/reference/docs/update.asciidoc
index af2bf8e9b0cc..23470ccdaef3 100644
--- a/docs/reference/docs/update.asciidoc
+++ b/docs/reference/docs/update.asciidoc
@@ -330,7 +330,7 @@ Control when the changes made by this request are visible to search. See
Allows to control if and how the updated source should be returned in the response.
By default the updated source is not returned.
-See <> for details.
+See <> for details.
`if_seq_no` and `if_primary_term`::
diff --git a/docs/reference/getting-started.asciidoc b/docs/reference/getting-started.asciidoc
index 0477b4acd727..f68ebd05093b 100755
--- a/docs/reference/getting-started.asciidoc
+++ b/docs/reference/getting-started.asciidoc
@@ -722,7 +722,7 @@ The accuracy of `hits.total` is controlled by the request parameter `track_total
the request will track the total hits accurately (`"relation": "eq"`). It defaults to `10,000`
which means that the total hit count is accurately tracked up to `10,000` documents.
You can force an accurate count by setting `track_total_hits` to true explicitly.
-See the <> documentation
+See the <> documentation
for more details.
Here is the same exact search above using the alternative request body method:
diff --git a/docs/reference/how-to/general.asciidoc b/docs/reference/how-to/general.asciidoc
index b78ef63b4c81..9633c7fe843f 100644
--- a/docs/reference/how-to/general.asciidoc
+++ b/docs/reference/how-to/general.asciidoc
@@ -9,7 +9,7 @@ Elasticsearch is designed as a search engine, which makes it very good at
getting back the top documents that match a query. However, it is not as good
for workloads that fall into the database domain, such as retrieving all
documents that match a particular query. If you need to do this, make sure to
-use the <> API.
+use the <> API.
[float]
[[maximum-document-size]]
@@ -27,7 +27,7 @@ needs to fetch the `_id` of the document in all cases, and the cost of getting
this field is bigger for large documents due to how the filesystem cache works.
Indexing this document can use an amount of memory that is a multiplier of the
original size of the document. Proximity search (phrase queries for instance)
-and <> also become more expensive
+and <> also become more expensive
since their cost directly depends on the size of the original document.
It is sometimes useful to reconsider what the unit of information should be.
diff --git a/docs/reference/how-to/recipes/scoring.asciidoc b/docs/reference/how-to/recipes/scoring.asciidoc
index 25425277839f..90bff3098571 100644
--- a/docs/reference/how-to/recipes/scoring.asciidoc
+++ b/docs/reference/how-to/recipes/scoring.asciidoc
@@ -29,7 +29,7 @@ are different too.
The recommended way to work around this issue is to use a string that identifies
the user that is logged is (a user id or session id for instance) as a
-<>. This ensures that all queries of a
+<>. This ensures that all queries of a
given user are always going to hit the same shards, so scores remain more
consistent across queries.
diff --git a/docs/reference/index-modules.asciidoc b/docs/reference/index-modules.asciidoc
index e34a4483ab6e..aa95bb8fa2e3 100644
--- a/docs/reference/index-modules.asciidoc
+++ b/docs/reference/index-modules.asciidoc
@@ -124,7 +124,7 @@ specific index module:
The maximum value of `from + size` for searches to this index. Defaults to
`10000`. Search requests take heap memory and time proportional to
`from + size` and this limits that memory. See
- <> or <> for a more efficient alternative
+ <> or <> for a more efficient alternative
to raising this.
`index.max_inner_result_window`::
diff --git a/docs/reference/index-modules/allocation/delayed.asciidoc b/docs/reference/index-modules/allocation/delayed.asciidoc
index 907d927fd68d..c6626a9dec32 100644
--- a/docs/reference/index-modules/allocation/delayed.asciidoc
+++ b/docs/reference/index-modules/allocation/delayed.asciidoc
@@ -28,7 +28,7 @@ this scenario:
If the master had just waited for a few minutes, then the missing shards could
have been re-allocated to Node 5 with the minimum of network traffic. This
process would be even quicker for idle shards (shards not receiving indexing
-requests) which have been automatically <>.
+requests) which have been automatically <>.
The allocation of replica shards which become unassigned because a node has
left can be delayed with the `index.unassigned.node_left.delayed_timeout`
diff --git a/docs/reference/mapping.asciidoc b/docs/reference/mapping.asciidoc
index d0a3c6e06cd6..8b6b1af3e589 100644
--- a/docs/reference/mapping.asciidoc
+++ b/docs/reference/mapping.asciidoc
@@ -47,7 +47,7 @@ Each field has a data `type` which can be:
* a type which supports the hierarchical nature of JSON such as
<