Skip to content

Commit 6738c08

Browse files
qa elasticsearch
1 parent bfa6532 commit 6738c08

22 files changed

+114
-175
lines changed

serverless/pages/elasticsearch/apis-elasticsearch-conventions.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For example:
1414
GET _cat/indices?v=true
1515
----
1616

17-
Check out https://www.elastic.co/docs/current/serverless/devtools/run-api-requests-in-the-console[].
17+
Check out <<devtools-run-api-requests-in-the-console>>.
1818

1919
[discrete]
2020
[[elasticsearch-api-conventions-request-headers]]

serverless/pages/elasticsearch/apis-http-apis.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
preview:[]
88

9-
* <<elasticsearch-api-conventions>>
10-
* <<elasticsearch-kibana-api-conventions>>
9+
* <<elasticsearch-api-conventions>>: The {es} REST APIs have conventions for headers and request bodies.
10+
* <<elasticsearch-kibana-api-conventions>>: The Management APIs for {serverless-short} have request header conventions.
1111
* https://www.elastic.co/docs/api/[API Reference]: Explore the reference information for Elastic Serverless REST APIs

serverless/pages/elasticsearch/apis-kibana-conventions.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ For example:
2929
GET kbn:/api/data_views
3030
----
3131

32-
Check out https://www.elastic.co/docs/current/serverless/devtools/run-api-requests-in-the-console[].
32+
Check out <<devtools-run-api-requests-in-the-console>>.
3333

3434
[discrete]
3535
[[elasticsearch-kibana-api-conventions-request-headers]]
@@ -42,7 +42,7 @@ The Management APIs support the `Authorization`, `Content-Type`, and `kbn-xsrf`
4242

4343
Management APIs use key-based authentication.
4444
You must create an API key and use the encoded value in the request header.
45-
To learn about creating keys, go to https://www.elastic.co/docs/current/serverless/api-keys[].
45+
To learn about creating keys, go to <<api-keys>>.
4646

4747
`Content-Type: application/json`::
4848

serverless/pages/elasticsearch/clients-go-getting-started.asciidoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ The following snippets use these imports:
4141
[source,go]
4242
----
4343
import (
44-
&#x9;"context"
45-
&#x9;"encoding/json"
46-
&#x9;"fmt"
47-
&#x9;"log"
48-
&#x9;"strconv"
49-
50-
&#x9;"github.com/elastic/elasticsearch-serverless-go"
51-
&#x9;"github.com/elastic/elasticsearch-serverless-go/typedapi/types"
52-
&#x9;"github.com/elastic/elasticsearch-serverless-go/typedapi/types/enums/result"
44+
"context"
45+
"encoding/json"
46+
"fmt"
47+
"log"
48+
"strconv"
49+
50+
"github.com/elastic/elasticsearch-serverless-go"
51+
"github.com/elastic/elasticsearch-serverless-go/typedapi/types"
52+
"github.com/elastic/elasticsearch-serverless-go/typedapi/types/enums/result"
5353
)
5454
----
5555

@@ -62,8 +62,8 @@ Initialize the client using your API key and Elasticsearch Endpoint:
6262
[source,go]
6363
----
6464
client, err := elasticsearch.NewClient(elasticsearch.Config{
65-
&#x9;APIKey: "you_api_key",
66-
&#x9;Address: "https://my-project-url",
65+
APIKey: "you_api_key",
66+
Address: "https://my-project-url",
6767
})
6868
if err != nil {
6969
log.Fatal(err)

serverless/pages/elasticsearch/clients-go-getting-started.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ The following snippets use these imports:
3535

3636
```go
3737
import (
38-
"context"
39-
"encoding/json"
40-
"fmt"
41-
"log"
42-
"strconv"
43-
44-
"github.com/elastic/elasticsearch-serverless-go"
45-
"github.com/elastic/elasticsearch-serverless-go/typedapi/types"
46-
"github.com/elastic/elasticsearch-serverless-go/typedapi/types/enums/result"
38+
"context"
39+
"encoding/json"
40+
"fmt"
41+
"log"
42+
"strconv"
43+
44+
"github.com/elastic/elasticsearch-serverless-go"
45+
"github.com/elastic/elasticsearch-serverless-go/typedapi/types"
46+
"github.com/elastic/elasticsearch-serverless-go/typedapi/types/enums/result"
4747
)
4848
```
4949

@@ -54,8 +54,8 @@ Initialize the client using your API key and Elasticsearch Endpoint:
5454

5555
```go
5656
client, err := elasticsearch.NewClient(elasticsearch.Config{
57-
APIKey: "you_api_key",
58-
Address: "https://my-project-url",
57+
APIKey: "you_api_key",
58+
Address: "https://my-project-url",
5959
})
6060
if err != nil {
6161
log.Fatal(err)

serverless/pages/elasticsearch/clients-ruby-getting-started.asciidoc

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ client for {es3}, shows you how to initialize the client, and how to perform bas
1616

1717
* Ruby 3.0 or higher installed on your system.
1818
* To use the `elasticsearch-serverless` gem, you must have an API key and Elasticsearch Endpoint for an {es3} project.
19-
*
2019

2120
[discrete]
2221
[[elasticsearch-ruby-client-getting-started-installation]]
@@ -126,7 +125,7 @@ index:
126125
[source,ruby]
127126
----
128127
# First, build your data:
129-
\> body = [
128+
> body = [
130129
{ index: { _index: 'books', data: {name: "Snow Crash", author: "Neal Stephenson", release_date: "1992-06-01", page_count: 470} } },
131130
{ index: { _index: 'books', data: {name: "Revelation Space", author: "Alastair Reynolds", release_date: "2000-03-15", page_count: 585} } },
132131
{ index: { _index: 'books', data: {name: "1984", author: "George Orwell", release_date: "1949-06-08", page_count: 328} } },
@@ -135,9 +134,9 @@ index:
135134
{ index: { _index: 'books', data: {name: "The Handmaid's Tale", author: "Margaret Atwood", release_date: "1985-06-01", page_count: 311} } }
136135
]
137136
# Then ingest the data via the bulk API:
138-
\> response = client.bulk(body: body)
137+
> response = client.bulk(body: body)
139138
# You can check the response if the items are indexed and have a document (doc) ID:
140-
\> response['items']
139+
> response['items']
141140
# Returns:
142141
# =>
143142
# [{"index"=>{"_index"=>"books", "_id"=>"Pdink4cBmDx329iqhzM2", "_version"=>1, "result"=>"created", "_shards"=>{"total"=>2, "successful"=>1, "failed"=>0}, "_seq_no"=>0, "_primary_term"=>1, "status"=>201}},
@@ -162,7 +161,7 @@ You can get documents by using the following code:
162161

163162
[source,ruby]
164163
----
165-
\> client.get(index: 'books', id: 'id') # Replace 'id' with a valid doc ID
164+
> client.get(index: 'books', id: 'id') # Replace 'id' with a valid doc ID
166165
----
167166

168167
[discrete]
@@ -174,8 +173,8 @@ Now that some data is available, you can search your documents using the
174173

175174
[source,ruby]
176175
----
177-
\> response = client.search(index: 'books', q: 'snow')
178-
\> response['hits']['hits']
176+
> response = client.search(index: 'books', q: 'snow')
177+
> response['hits']['hits']
179178
# Returns:
180179
# => [{"_index"=>"books", "_id"=>"Pdink4cBmDx329iqhzM2", "_score"=>1.5904956, "_source"=>{"name"=>"Snow Crash", "author"=>"Neal Stephenson", "release_date"=>"1992-06-01", "page_count"=>470}}]
181180
----
@@ -188,7 +187,7 @@ You can call the `update` API to update a document:
188187

189188
[source,ruby]
190189
----
191-
\> response = client.update(
190+
> response = client.update(
192191
index: 'books',
193192
id: 'id', # Replace 'id' with a valid doc ID
194193
body: { doc: { page_count: 312 } }
@@ -203,7 +202,7 @@ You can call the `delete` API to delete a document:
203202

204203
[source,ruby]
205204
----
206-
\> client.delete(index: 'books', id: 'id') # Replace 'id' with a valid doc ID
205+
> client.delete(index: 'books', id: 'id') # Replace 'id' with a valid doc ID
207206
----
208207

209208
[discrete]
@@ -212,5 +211,5 @@ You can call the `delete` API to delete a document:
212211

213212
[source,ruby]
214213
----
215-
\> client.indices.delete(index: 'books')
214+
> client.indices.delete(index: 'books')
216215
----

serverless/pages/elasticsearch/clients-ruby-getting-started.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ client for ((es3)), shows you how to initialize the client, and how to perform b
1515

1616
* Ruby 3.0 or higher installed on your system.
1717
* To use the `elasticsearch-serverless` gem, you must have an API key and Elasticsearch Endpoint for an ((es3)) project.
18-
*
1918

2019
## Installation
2120

serverless/pages/elasticsearch/elasticsearch-developer-tools.asciidoc

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@
66

77
preview:[]
88

9-
[discrete]
10-
[[elasticsearch-dev-tools-developer-tools]]
11-
== Developer tools
12-
139
A number of developer tools are available in your project's UI under the **Dev Tools** section.
1410

15-
* https://www.elastic.co/docs/current/serverless/devtools/run-api-requests-in-the-console[Console]: Make API calls to your Elasticsearch instance using the Query DSL and view the responses.
16-
* https://www.elastic.co/docs/current/serverless/devtools/profile-queries-and-aggregations[Search Profiler]: Inspect and analyze your search queries to identify performance bottlenecks.
17-
* https://www.elastic.co/docs/current/serverless/devtools/debug-grok-expressions[Grok Debugger]: Build and debug grok patterns before you use them in your data processing pipelines.
11+
* <<devtools-run-api-requests-in-the-console,Console>>: Make API calls to your Elasticsearch instance using the Query DSL and view the responses.
12+
* <<devtools-profile-queries-and-aggregations,Search Profiler>>: Inspect and analyze your search queries to identify performance bottlenecks.
13+
* <<devtools-debug-grok-expressions,Grok Debugger>>: Build and debug grok patterns before you use them in your data processing pipelines.
1814

1915
// ## Troubleshooting
2016

serverless/pages/elasticsearch/elasticsearch-developer-tools.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ tags: [ 'serverless', 'elasticsearch', 'overview' ]
66
---
77

88
<DocBadge template="technical preview" />
9-
## Developer tools
109

1110
A number of developer tools are available in your project's UI under the **Dev Tools** section.
1211

serverless/pages/elasticsearch/explore-your-data-alerting.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ In **{alerts-app}** or **{project-settings} → {manage-app} → {rules-app}** y
2020
[role="screenshot"]
2121
image::images/rules-ui.png[Example rule listing in {rules-ui}]
2222

23-
For an overview of alerting concepts, go to https://www.elastic.co/docs/current/serverless/rules[].
23+
For an overview of alerting concepts, go to <<rules>>.
2424

2525
////
2626
/* ## Required permissions
@@ -80,7 +80,7 @@ When a rule is in a snoozed state, you can cancel or change the duration of this
8080
[[elasticsearch-explore-your-data-alerting-import-and-export-rules]]
8181
== Import and export rules
8282

83-
To import and export rules, use https://www.elastic.co/docs/current/serverless/saved-objects[saved objects].
83+
To import and export rules, use <<saved-objects,saved objects>>.
8484

8585
////
8686
/*

0 commit comments

Comments
 (0)