Skip to content

Commit 93ca26c

Browse files
author
Christoph Büscher
committed
yaml test
1 parent a7b104f commit 93ca26c

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

qa/multi-cluster-search/src/test/resources/rest-api-spec/test/multi_cluster/30_field_caps.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,23 @@
7272
fields: [number]
7373
- match: {fields.number.double.searchable: true}
7474
- match: {fields.number.double.aggregatable: true}
75+
- match: {fields.number.double.type: double}
76+
77+
# make sure runtime_mappings section gets propagated
78+
79+
- do:
80+
field_caps:
81+
index: 'my_remote_cluster:field_caps_index_1'
82+
fields: [number]
83+
body:
84+
runtime_mappings:
85+
number:
86+
type: keyword
87+
script:
88+
source: "emit(doc['number'].value)"
89+
- match: {fields.number.keyword.searchable: true}
90+
- match: {fields.number.keyword.aggregatable: true}
91+
- match: {fields.number.keyword.type: keyword}
7592

7693
---
7794
"Get field caps from remote cluster with index filter":

server/src/main/java/org/elasticsearch/action/fieldcaps/TransportFieldCapabilitiesAction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ public void onFailure(Exception e) {
117117
remoteRequest.fields(request.fields());
118118
remoteRequest.indexFilter(request.indexFilter());
119119
remoteRequest.nowInMillis(nowInMillis);
120+
// remoteRequest.runtimeFields(request.runtimeFields());
120121
remoteClusterClient.fieldCaps(remoteRequest, ActionListener.wrap(response -> {
121122
for (FieldCapabilitiesIndexResponse res : response.getIndexResponses()) {
122123
indexResponses.add(new FieldCapabilitiesIndexResponse(RemoteClusterAware.

0 commit comments

Comments
 (0)