REST high-level client: add get index API#31703
Conversation
|
@elasticmachine add to whitelist |
|
Pinging @elastic/es-core-infra |
89a0907 to
e9e08f7
Compare
| * @return the response | ||
| * @throws IOException in case there is a problem sending the request or parsing back the response | ||
| */ | ||
| public GetIndexResponse getIndex(GetIndexRequest getIndexRequest, RequestOptions options) throws IOException { |
There was a problem hiding this comment.
can you call it just get please ?
| params.withLocal(getIndexRequest.local()); | ||
| params.withIncludeDefaults(getIndexRequest.includeDefaults()); | ||
| params.withHuman(getIndexRequest.humanReadable()); | ||
| params.withMasterTimeout(getIndexRequest.masterNodeTimeout()); |
There was a problem hiding this comment.
can you also add this parameter to the corresponding REST spec? We are missing it there I think.
There was a problem hiding this comment.
I don't understand what you mean by the REST spec? You mean the documentation for get_index?
There was a problem hiding this comment.
There was a problem hiding this comment.
Thanks! Now I know what this mysterious "spec" is every time you mention it 😀
There was a problem hiding this comment.
👍 haha I thought I had explained that, sorry for the confusion.
-- Also added master_timeout parameter for the indices.get spec
javanna
left a comment
There was a problem hiding this comment.
LGTM thanks @nik9000 & @sohaibiftikhar !
* master: REST high-level client: add get index API (#31703) SQL: Allow long literals (#31777) SQL: Fix incorrect message for aliases (#31792) Test: Do not remove xpack templates when cleaning (#31642) Reduce more raw types warnings (#31780) Add unreleased version 6.3.2 Scripting: Remove support for deprecated StoredScript contexts (#31394) [ML][TEST] Use java 11 valid time format in DataDescriptionTests (#31817) [ML] Don't treat stale FAILED jobs as OPENING in job allocation (#31800) [ML] Fix calendar and filter updates from non-master nodes (#31804) Fix license header generation on Windows (#31790) mark RollupIT.testTwoJobsStartStopDeleteOne as AwaitsFix mark SearchAsyncActionTests.testFanOutAndCollect as AwaitsFix Correct exclusion of test on JDK 11 Fix doclint jdk 11 Add JDK11 support and enable in CI (#31644) Watcher: Fix check for currently executed watches (#31137) Watcher: Ensure correct method is used to read secure settings (#31753) SQL: Update CLI logo
Also added master_timeout parameter for the indices.get spec Relates to #27205
|
Merge and backported to 6.x. |
* 6.x: [ML] Fix master node deadlock during ML daily maintenance (#31836) Build: Switch integ-test-zip to OSS-only (#31866) Build: Fix detection of Eclipse Compiler Server (#31838) SQL: Remove restriction for single column grouping (#31818) Docs: Inconsistency between description and example (#31858) Fix and reenable TribeIntegrationTests QA: build improvements related to SQL projects (#31862) muted test [Docs] Add clarification to analysis example (#31826) Check timeZone() argument in AbstractSqlQueryRequest (#31822) Remove obsolete parameters from analyze rest spec (#31795) SQL: Fix incorrect HAVING equality (#31820) Smaller aesthetic fixes to InternalTestCluster (#31831) [Docs] Clarify accepted sort case (#31605) Do not return all indices if a specific alias is requested via get aliases api. (#29538) [Docs] Fix wrong link in Korean analyzer docs (#31815) Fix profiling of ordered terms aggs (#31814) Fix handling of points_only with term strategy in geo_shape (#31766) Docs: Explain _bulk?refresh shard targeting REST high-level client: add get index API (#31703)
Relates to #27205
This is a followup to #31675.