File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
qa/multi-cluster-search/src/test/resources/rest-api-spec/test/multi_cluster
server/src/main/java/org/elasticsearch/action/fieldcaps Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 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 " :
Original file line number Diff line number Diff 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 .
You can’t perform that action at this time.
0 commit comments