Skip to content

Commit ae01606

Browse files
authored
[DOCS] Replace twitter dataset in docs (#60604)
1 parent 41a93d7 commit ae01606

34 files changed

+151
-117
lines changed

docs/reference/cluster/health.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,6 @@ The following is an example of getting the cluster health at the
184184

185185
[source,console]
186186
--------------------------------------------------
187-
GET /_cluster/health/twitter?level=shards
187+
GET /_cluster/health/my-index-000001?level=shards
188188
--------------------------------------------------
189-
// TEST[setup:twitter]
189+
// TEST[setup:my_index]

docs/reference/cluster/stats.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ Number of selected nodes using the distribution flavor and file type.
11001100
--------------------------------------------------
11011101
GET /_cluster/stats?human&pretty
11021102
--------------------------------------------------
1103-
// TEST[setup:twitter]
1103+
// TEST[setup:my_index]
11041104

11051105
The API returns the following response:
11061106

docs/reference/commands/shard-tool.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ operation that removes corrupted data from the shard.
5757

5858
[source,txt]
5959
--------------------------------------------------
60-
$ bin/elasticsearch-shard remove-corrupted-data --index twitter --shard-id 0
60+
$ bin/elasticsearch-shard remove-corrupted-data --index my-index-000001 --shard-id 0
6161
6262
6363
WARNING: Elasticsearch MUST be stopped before running this tool.

docs/reference/docs/delete.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Example to delete with routing
6363
6464
[source,console]
6565
--------------------------------------------------
66-
PUT /my-index-000001/_doc/1?routing=kimchy
66+
PUT /my-index-000001/_doc/1?routing=shard-1
6767
{
6868
"test": "test"
6969
}
@@ -73,7 +73,7 @@ PUT /my-index-000001/_doc/1?routing=kimchy
7373

7474
[source,console]
7575
--------------------------------------------------
76-
DELETE /my-index-000001/_doc/1?routing=kimchy
76+
DELETE /my-index-000001/_doc/1?routing=shard-1
7777
--------------------------------------------------
7878
// TEST[continued]
7979

docs/reference/eql/eql-search-api.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,14 +506,14 @@ The following EQL search request searches for events with an `event.category` of
506506
`file` that meet the following conditions:
507507

508508
* A `file.name` of `cmd.exe`
509-
* An `agent.id` other than `my_user`
509+
* An `agent.id` other than `8a4f526c`
510510

511511
[source,console]
512512
----
513513
GET /my-index-000001/_eql/search
514514
{
515515
"query": """
516-
file where (file.name == "cmd.exe" and agent.id != "my_user")
516+
file where (file.name == "cmd.exe" and agent.id != "8a4f526c")
517517
"""
518518
}
519519
----
@@ -614,7 +614,7 @@ that:
614614
--
615615
* An `event.category` of `file`
616616
* A `file.name` of `cmd.exe`
617-
* An `agent.id` other than `my_user`
617+
* An `agent.id` other than `8a4f526c`
618618
--
619619
. Followed by an event with:
620620
+
@@ -631,7 +631,7 @@ GET /my-index-000001/_eql/search
631631
{
632632
"query": """
633633
sequence by agent.id
634-
[ file where file.name == "cmd.exe" and agent.id != "my_user" ]
634+
[ file where file.name == "cmd.exe" and agent.id != "8a4f526c" ]
635635
[ process where stringContains(process.executable, "regsvr32") ]
636636
"""
637637
}

docs/reference/frozen-indices.asciidoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ or sorted search requests.
6464

6565
[source,console]
6666
--------------------------------------------------
67-
POST /twitter/_forcemerge?max_num_segments=1
67+
POST /my-index-000001/_forcemerge?max_num_segments=1
6868
--------------------------------------------------
69-
// TEST[setup:twitter]
69+
// TEST[setup:my_index]
7070

7171
[role="xpack"]
7272
[testenv="basic"]
@@ -81,9 +81,9 @@ the query parameter `ignore_throttled=false`.
8181

8282
[source,console]
8383
--------------------------------------------------
84-
GET /twitter/_search?q=user:kimchy&ignore_throttled=false
84+
GET /my-index-000001/_search?q=user.id:kimchy&ignore_throttled=false
8585
--------------------------------------------------
86-
// TEST[setup:twitter]
86+
// TEST[setup:my_index]
8787

8888
[role="xpack"]
8989
[testenv="basic"]
@@ -95,16 +95,16 @@ Frozen indices are ordinary indices that use search throttling and a memory effi
9595

9696
[source,console]
9797
--------------------------------------------------
98-
GET /_cat/indices/twitter?v&h=i,sth
98+
GET /_cat/indices/my-index-000001?v&h=i,sth
9999
--------------------------------------------------
100-
// TEST[s/^/PUT twitter\nPOST twitter\/_freeze\n/]
100+
// TEST[s/^/PUT my-index-000001\nPOST my-index-000001\/_freeze\n/]
101101

102102
The response looks like:
103103

104104
[source,txt]
105105
--------------------------------------------------
106-
i sth
107-
twitter true
106+
i sth
107+
my-index-000001 true
108108
--------------------------------------------------
109109
// TESTRESPONSE[non_json]
110110

docs/reference/index-modules/blocks.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ Adds an index block to an index.
7474

7575
[source,console]
7676
--------------------------------------------------
77-
PUT /twitter/_block/write
77+
PUT /my-index-000001/_block/write
7878
--------------------------------------------------
79-
// TEST[setup:twitter]
79+
// TEST[setup:my_index]
8080

8181

8282
[discrete]

docs/reference/index-modules/index-sorting.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For instance the following example shows how to define a sort on a single field:
1414

1515
[source,console]
1616
--------------------------------------------------
17-
PUT twitter
17+
PUT my-index-000001
1818
{
1919
"settings": {
2020
"index": {
@@ -39,7 +39,7 @@ It is also possible to sort the index by more than one field:
3939

4040
[source,console]
4141
--------------------------------------------------
42-
PUT twitter
42+
PUT my-index-000001
4343
{
4444
"settings": {
4545
"index": {

docs/reference/index-modules/slowlog.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ All of the above settings are _dynamic_ and can be set for each index using the
2929

3030
[source,console]
3131
--------------------------------------------------
32-
PUT /twitter/_settings
32+
PUT /my-index-000001/_settings
3333
{
3434
"index.search.slowlog.threshold.query.warn": "10s",
3535
"index.search.slowlog.threshold.query.info": "5s",
@@ -41,7 +41,7 @@ PUT /twitter/_settings
4141
"index.search.slowlog.threshold.fetch.trace": "200ms"
4242
}
4343
--------------------------------------------------
44-
// TEST[setup:twitter]
44+
// TEST[setup:my_index]
4545

4646
By default thresholds are disabled (set to `-1`).
4747

@@ -108,7 +108,7 @@ All of the above settings are _dynamic_ and can be set for each index using the
108108

109109
[source,console]
110110
--------------------------------------------------
111-
PUT /twitter/_settings
111+
PUT /my-index-000001/_settings
112112
{
113113
"index.indexing.slowlog.threshold.index.warn": "10s",
114114
"index.indexing.slowlog.threshold.index.info": "5s",
@@ -117,7 +117,7 @@ PUT /twitter/_settings
117117
"index.indexing.slowlog.source": "1000"
118118
}
119119
--------------------------------------------------
120-
// TEST[setup:twitter]
120+
// TEST[setup:my_index]
121121

122122
By default Elasticsearch will log the first 1000 characters of the _source in
123123
the slowlog. You can change that with `index.indexing.slowlog.source`. Setting

docs/reference/indices/aliases.asciidoc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,19 +302,23 @@ exist in the mapping:
302302

303303
[source,console]
304304
--------------------------------------------------
305-
PUT /test1
305+
PUT /my-index-000001
306306
{
307307
"mappings": {
308308
"properties": {
309-
"user" : {
310-
"type": "keyword"
309+
"user": {
310+
"properties": {
311+
"id": {
312+
"type": "keyword"
313+
}
314+
}
311315
}
312316
}
313317
}
314318
}
315319
--------------------------------------------------
316320

317-
Now we can create an alias that uses a filter on field `user`:
321+
Now we can create an alias that uses a filter on field `user.id`:
318322

319323
[source,console]
320324
--------------------------------------------------
@@ -323,7 +327,7 @@ POST /_aliases
323327
"actions": [
324328
{
325329
"add": {
326-
"index": "test1",
330+
"index": "my-index-000001",
327331
"alias": "alias2",
328332
"filter": { "term": { "user.id": "kimchy" } }
329333
}

0 commit comments

Comments
 (0)