We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0645781 commit ef53230Copy full SHA for ef53230
server/routes/opensearch.ts
@@ -422,10 +422,10 @@ export default class OpenSearchService {
422
423
// make call to fields_caps
424
if (remoteIndices.length) {
425
- const fieldCapsResponse = await callWithRequest('transport.request', {
426
- method: 'GET',
427
- path:
428
- remoteIndices.toString() + '/_field_caps?fields=*&include_unmapped',
+ const fieldCapsResponse = await callWithRequest('fieldCaps', {
+ index: remoteIndices.toString(),
+ fields: '*',
+ include_unmapped: true
429
});
430
remoteMappings = convertFieldCapsToMappingStructure(fieldCapsResponse);
431
}
0 commit comments