-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index pattern management - use new es client instead of legacy #95293
Index pattern management - use new es client instead of legacy #95293
Conversation
Pinging @elastic/kibana-app-services (Team:AppServices) |
const { body } = await context.core.elasticsearch.client.asCurrentUser.transport.request({ | ||
method: 'GET', | ||
path: `/_resolve/index/${encodeURIComponent(req.params.query)}${ | ||
queryString ? '?' + new URLSearchParams(queryString).toString() : '' | ||
}`, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work?
const { body } = await context.core.elasticsearch.client.asCurrentUser.transport.request({ | |
method: 'GET', | |
path: `/_resolve/index/${encodeURIComponent(req.params.query)}${ | |
queryString ? '?' + new URLSearchParams(queryString).toString() : '' | |
}`, | |
}); | |
const { body } = await context.core.elasticsearch.client.asCurrentUser.resolveIndex({ | |
expand_wildcards: req.query.expand_wildcards | |
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not quite, but I did figure it out, thanks
💛 Build succeeded, but was flaky
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…ic#95293) * use new es client instead of legacy * use resolve api on client
… (#95467) * use new es client instead of legacy * use resolve api on client
Summary
Use new ES client instead of legacy client for index pattern management.
addresses #83910