Skip to content

Commit c0a08ac

Browse files
authored
Fix 404 links to serverless API ref (#44)
* Fix 404 link to serverless Search API docs * Update link text for clarity * Fix more links
1 parent cd01dbe commit c0a08ac

File tree

3 files changed

+14
-21
lines changed

3 files changed

+14
-21
lines changed

serverless/pages/clients-php-getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ print_r($response['hits']['hits']); # list of books
140140

141141
For more information about the `search` API's query parameters and the response type,
142142
refer to the
143-
[Search API](/api-reference/search/search-2)
143+
[Search API](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/group/endpoint-search)
144144
docs.
145145

146146
### Updating documents

serverless/pages/developer-tools-troubleshooting.mdx

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,14 @@ Elasticsearch returns an `index_not_found_exception` when the data stream, index
1616
or alias you try to query does not exist. This can happen when you misspell the
1717
name or when the data has been indexed to a different data stream or index.
1818

19-
Use the [**Exists API**](/api-reference/search/indices-exists) to check whether
19+
Use the [**Exists API**](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-exists-index-template) to check whether
2020
a data stream, index, or alias exists:
2121

2222
```js
23-
HEAD my-data-stream
23+
HEAD my-index
2424
```
2525

26-
Use the [**Data stream stats API**](/api-reference/search/indices-data-streams-stats)
27-
to list all data streams:
28-
29-
```js
30-
GET /_data_stream/_stats
31-
```
32-
33-
Use the [**Get index API**](/api-reference/search/indices-get)
26+
Use the [**Get index API**](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-get)
3427
to list all indices and their aliases:
3528

3629
```js
@@ -53,7 +46,7 @@ This can happen when there is a data ingestion issue.
5346
For example, the data may have been indexed to a data stream or index with
5447
another name.
5548
56-
Use the [**Count API**](/api-reference/search/count-3)
49+
Use the [**Count API**](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-count-1)
5750
to retrieve the number of documents in a data
5851
stream or index.
5952
Check that `count` in the response is not 0.
@@ -73,7 +66,7 @@ configured with the correct time field.
7366
## Check that the field exists and its capabilities
7467
7568
Querying a field that does not exist will not return any results.
76-
Use the [**Field capabilities API**](/api-reference/search/field-caps)
69+
Use the [**Field capabilities API**](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-field-caps)
7770
to check whether a field exists:
7871
7972
```js
@@ -110,15 +103,15 @@ searchable and aggregatable.
110103
## Check the field's mappings
111104
112105
A field's capabilities are determined by its [mapping](((ref))/mapping.html).
113-
To retrieve the mapping, use the [**Get mapping API**](/api-reference/search/indices-get-mapping-1):
106+
To retrieve the mapping, use the [**Get mapping API**](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-get-mapping):
114107
115108
```js
116109
GET /my-index-000001/_mappings
117110
```
118111
119112
If you query a `text` field, pay attention to the analyzer that may have been
120113
configured.
121-
You can use the [**Analyze API**](/api-reference/search/indices-analyze)
114+
You can use the [**Analyze API**](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-analyze)
122115
to check how a field's analyzer processes values and query terms:
123116
124117
```js
@@ -129,7 +122,7 @@ GET /my-index-000001/_analyze
129122
}
130123
```
131124
132-
To change the mapping of an existing field use the [**Update mapping API**](/api-reference/search/indices-put-mapping).
125+
To change the mapping of an existing field use the [**Update mapping API**](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-put-mapping-1).
133126
134127
## Check the field's values
135128
@@ -203,7 +196,7 @@ GET /my-index-000001/_search?sort=@timestamp:desc&size=1
203196
When a query returns unexpected results, Elasticsearch offers several tools to
204197
investigate why.
205198
206-
The [**Validate API**](/api-reference/search/indices-validate-query-2)
199+
The [**Validate API**](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-validate-query)
207200
enables you to validate a query.
208201
Use the `rewrite` parameter to return the Lucene query an Elasticsearch query is
209202
rewritten into:
@@ -251,15 +244,15 @@ Index settings {/* <DocLink id="enElasticsearchReferenceIndexModules" section="i
251244
can influence search results.
252245
For example, the `index.query.default_field` setting, which determines the field
253246
that is queried when a query specifies no explicit field.
254-
Use the [**Get index settings API**](/api-reference/search/indices-get-settings-1)
247+
Use the [**Get index settings API**](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-get-settings)
255248
to retrieve the settings for an index:
256249
257250
```bash
258251
GET /my-index-000001/_settings
259252
```
260253
261254
You can update dynamic index settings with the
262-
[**Update index settings API**](/api-reference/search/indices-put-settings-1).
255+
[**Update index settings API**](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/operation/operation-indices-put-settings).
263256
Changing dynamic index settings for a data stream
264257
{/* <DocLink id="enElasticsearchReferenceModifyDataStreams" section="change-a-dynamic-index-setting-for-a-data-stream">Changing dynamic index settings for a data stream</DocLink> */} requires changing the index template used by the data stream.
265258

serverless/pages/search-your-data-the-search-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ A search may also contain additional information used to better process its
1515
queries. For example, a search may be limited to a specific index or only return
1616
a specific number of results.
1717

18-
You can use the [search API](/api-reference/search/search-2) to search and
18+
You can use the [search API](https://www.elastic.co/docs/api/doc/elasticsearch-serverless/group/endpoint-search) to search and
1919
aggregate data stored in ((es)) data streams or indices.
2020
The API's `query` request body parameter accepts queries written in
2121
[Query DSL](((ref))/query-dsl.html).
2222

23-
For more information, refer to [The search API](((ref))/search-your-data.html).
23+
For more information, refer to [the search API overview](((ref))/search-your-data.html) in the classic ((es)) docs.

0 commit comments

Comments
 (0)