### Elasticsearch Version

8.4.1

### Installed Plugins

_No response_

### Java Version

_bundled_

### OS Version

Any

### Problem Description

Data streams can be individually targeted by update by query but wildcards don't seem to work.

ie: `/my-data-stream-*/_update_by_query` doesn't work while `/my-data-stream-1,my-data-stream-2/_update_by_query` does.

### Steps to Reproduce

Following the [basic setup for datastreams](https://www.elastic.co/guide/en/elasticsearch/reference/current/set-up-a-data-stream.html):

```

PUT /my-data-stream-1/_bulk
{ "create":{ } }
{ "@timestamp": "2099-05-06T16:21:15.000Z", "message": "192.0.2.42 - - [06/May/2099:16:21:15 +0000] \"GET /images/bg.jpg HTTP/1.0\" 200 24736" }
{ "create":{ } }
{ "@timestamp": "2099-05-06T16:25:42.000Z", "message": "192.0.2.255 - - [06/May/2099:16:25:42 +0000] \"GET /favicon.ico HTTP/1.0\" 200 3638" }

PUT /my-data-stream-2/_bulk
{ "create":{ } }
{ "@timestamp": "2199-05-06T16:21:15.000Z", "message": "192.0.2.42 - - [06/May/2199:16:21:15 +0000] \"GET /images/bg.jpg HTTP/1.0\" 200 24736" }
{ "create":{ } }
{ "@timestamp": "2199-05-06T16:25:42.000Z", "message": "192.0.2.255 - - [06/May/2199:16:25:42 +0000] \"GET /favicon.ico HTTP/1.0\" 200 3638" }

POST /my-data-stream-*/_update_by_query
{
  "query": {
    "term": {
      "@timestamp": {
        "value": "2099-05-06T16:21:15.000Z"
      }
    }
  }
}
```
Total number of documents is 0.

```
POST /my-data-stream-1,my-data-stream-2/_update_by_query
{
  "query": {
    "term": {
      "@timestamp": {
        "value": "2099-05-06T16:21:15.000Z"
      }
    }
  }
}
```
Total number of documents is now 1.

### Logs (if relevant)

_No response_
server/src/main/java/org/elasticsearch/index/reindex/UpdateByQueryRequest.java
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0 and the Server Side Public License, v 1; you may not use this file except
 * in compliance with, at your election, the Elastic License 2.0 or the Server
 * Side Public License, v 1.
 */
package org.elasticsearch.index.reindex;
import org.elasticsearch.action.IndicesRequest;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.support.IndicesOptions;
import org.elasticsearch.common.io.stream.StreamInput;
import org.elasticsearch.common.io.stream.StreamOutput;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.tasks.TaskId;
import org.elasticsearch.xcontent.ToXContentObject;
import org.elasticsearch.xcontent.XContentBuilder;
import java.io.IOException;
/**
 * Request to update some documents. That means you can't change their type, id, index, or anything like that. This implements
 * CompositeIndicesRequest but in a misleading way. Rather than returning all the subrequests that it will make it tries to return a
 * representative set of subrequests. This is best-effort but better than {@linkplain ReindexRequest} because scripts can't change the
 * destination index and things.
 */
public class UpdateByQueryRequest extends AbstractBulkIndexByScrollRequest<UpdateByQueryRequest>