Skip to content

Commit 4d498fa

Browse files
authored
[DOCS] Change wildcard to index pattern in DS docs (elastic#61058) (elastic#61061)
1 parent f4b104e commit 4d498fa

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

docs/reference/data-streams/change-mappings-and-settings.asciidoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ index created by the new stream.
378378

379379
Follow these steps:
380380

381-
. Choose a name or wildcard (`*`) pattern for a new data stream. This new data
381+
. Choose a name or index pattern for a new data stream. This new data
382382
stream will contain data from your existing stream.
383383
+
384384
You can use the resolve index API to check if the name or pattern matches any
@@ -387,7 +387,7 @@ using another name or pattern.
387387
--
388388
The following resolve index API request checks for any existing indices, index
389389
aliases, or data streams that start with `new-data-stream`. If not, the
390-
`new-data-stream*` wildcard pattern can be used to create a new data stream.
390+
`new-data-stream*` index pattern can be used to create a new data stream.
391391

392392
[source,console]
393393
----
@@ -414,7 +414,7 @@ indices.
414414
+
415415
This index template must meet the
416416
<<create-a-data-stream-template,requirements for a data stream template>>. It
417-
should also contain your previously chosen name or wildcard pattern in the
417+
should also contain your previously chosen name or index pattern in the
418418
`index_patterns` property.
419419
+
420420
TIP: If you are only adding or changing a few things, we recommend you create a
@@ -429,7 +429,7 @@ index template, `new-data-stream-template`. `new-data-stream-template`
429429
uses `my-data-stream-template` as its basis, with the following
430430
changes:
431431

432-
* The `index_patterns` wildcard pattern matches any index or data stream
432+
* The index pattern in `index_patterns` matches any index or data stream
433433
starting with `new-data-stream`.
434434
* The `@timestamp` field mapping uses the `date_nanos` field data type rather
435435
than the `date` data type.
@@ -463,8 +463,8 @@ PUT /_index_template/new-data-stream-template
463463
--
464464

465465
. Use the <<indices-create-data-stream,create data stream API>> to manually
466-
create the new data stream. The name of the data stream must match the name or
467-
wildcard pattern defined in the new template's `index_patterns` property.
466+
create the new data stream. The name of the data stream must match the index
467+
pattern defined in the new template's `index_patterns` property.
468468
+
469469
We do not recommend <<index-documents-to-create-a-data-stream,indexing new data
470470
to create this data stream>>. Later, you will reindex older data from an
@@ -483,7 +483,7 @@ to retain such a backing index until you are ready to delete its newest data.
483483
+
484484
--
485485
The following create data stream API request targets `new-data-stream`, which
486-
matches the wildcard pattern for `new-data-stream-template`.
486+
matches the index pattern for `new-data-stream-template`.
487487
Because no existing index or data stream uses this name, this request creates
488488
the `new-data-stream` data stream.
489489

docs/reference/data-streams/set-up-a-data-stream.asciidoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ PUT /_ilm/policy/my-data-stream-policy
103103
A data stream uses an index template to configure its backing indices. A
104104
template for a data stream must specify:
105105

106-
* One or more wildcard (`*`) patterns that match the name of the stream.
106+
* One or more index patterns that match the name of the stream.
107107

108108
* The mappings and settings for the stream's backing indices.
109109

@@ -201,7 +201,7 @@ You can create a data stream using one of two methods:
201201

202202
You can automatically create a data stream using an indexing request. Submit
203203
an <<add-documents-to-a-data-stream,indexing request>> to a target
204-
matching the name or wildcard pattern defined in the template's `index_patterns`
204+
matching the index pattern defined in the template's `index_patterns`
205205
property.
206206

207207
If the indexing request's target doesn't exist, {es} creates the data stream and
@@ -211,7 +211,7 @@ NOTE: Data streams support only specific types of indexing requests. See
211211
<<add-documents-to-a-data-stream>>.
212212

213213
The following <<docs-index_,index API>> request targets `my-data-stream`, which
214-
matches the wildcard pattern for `my-data-stream-template`. Because
214+
matches the index pattern for `my-data-stream-template`. Because
215215
no existing index or data stream uses this name, this request creates the
216216
`my-data-stream` data stream and indexes the document to it.
217217

@@ -256,11 +256,11 @@ index of the new data stream.
256256
==== Manually create a data stream
257257

258258
You can use the <<indices-create-data-stream,create data stream API>> to
259-
manually create a data stream. The name of the data stream must match the name
260-
or wildcard pattern defined in the template's `index_patterns` property.
259+
manually create a data stream. The name of the data stream must match the index
260+
pattern defined in the template's `index_patterns` property.
261261

262262
The following create data stream request targets `my-data-stream-alt`, which
263-
matches the wildcard pattern for `my-data-stream-template`. Because
263+
matches the index pattern for `my-data-stream-template`. Because
264264
no existing index or data stream uses this name, this request creates the
265265
`my-data-stream-alt` data stream.
266266

docs/reference/data-streams/use-a-data-stream.asciidoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ GET /my-data-stream/_search
226226
}
227227
----
228228

229-
You can use a comma-separated list or wildcard (`*`) expression to search
229+
You can use a comma-separated list to search
230230
multiple data streams, indices, and index aliases in the same request.
231231

232232
The following request searches `my-data-stream` and `my-data-stream-alt`,
@@ -243,8 +243,11 @@ GET /my-data-stream,my-data-stream-alt/_search
243243
}
244244
}
245245
----
246-
The following request uses the `my-data-stream*` wildcard expression to search any data
247-
stream, index, or index alias beginning with `my-data-stream`.
246+
247+
Index patterns are also supported.
248+
249+
The following request uses the `my-data-stream*` index pattern to search any
250+
data stream, index, or index alias beginning with `my-data-stream`.
248251

249252
[source,console]
250253
----

docs/reference/indices/resolve.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<titleabbrev>Resolve index</titleabbrev>
55
++++
66

7-
Resolves the specified name(s) and/or wildcard expression(s) to indices, index
8-
aliases, and data streams. Multiple expressions and remote clusters are
7+
Resolves the specified name(s) and/or index patterns for indices, index
8+
aliases, and data streams. Multiple patterns and remote clusters are
99
supported.
1010

1111
////
@@ -63,7 +63,7 @@ GET /_resolve/index/my-index-*
6363
`<name>`::
6464
+
6565
--
66-
(Required, string) Comma-separated name(s) or wildcard expression(s) of the
66+
(Required, string) Comma-separated name(s) or index pattern(s) of the
6767
indices, index aliases, and data streams to resolve. Resources on
6868
<<modules-remote-clusters,remote clusters>> can be specified using the
6969
`<cluster>:<name>` syntax.

0 commit comments

Comments
 (0)