Skip to content

Commit b8ecbd8

Browse files
Fix issues in indices API - java-client+recordings (#1941) (#1942)
* Extract forcemerge.response, add task optional property * Add eager_global_ordinals to JoinProperty * Add created_string to IndexVersioning, Change SimilarityBm25 b property to double to reflect float from server * Extract forcemerge response, add optional task * Add missing properties to RolloverConditions * Update schema Co-authored-by: Laurent Saint-Félix <[email protected]>
1 parent 045227b commit b8ecbd8

File tree

8 files changed

+206
-62
lines changed

8 files changed

+206
-62
lines changed

output/schema/schema.json

Lines changed: 148 additions & 54 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_types/mapping/core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export class DateNanosProperty extends DocValuesPropertyBase {
8282

8383
export class JoinProperty extends PropertyBase {
8484
relations?: Dictionary<RelationName, RelationName | RelationName[]>
85+
eager_global_ordinals?: boolean
8586
type: 'join'
8687
}
8788

specification/indices/_types/IndexSettings.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export class SettingsSimilarity {
178178
}
179179

180180
export class SettingsSimilarityBm25 {
181-
b: integer
181+
b: double
182182
discount_overlaps: boolean
183183
k1: double
184184
type: 'BM25'
@@ -261,6 +261,7 @@ export enum IndexCheckOnStartup {
261261

262262
export class IndexVersioning {
263263
created?: VersionString
264+
created_string?: string
264265
}
265266

266267
export class IndexSettingsLifecycle {

specification/indices/forcemerge/IndicesForceMergeResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
* under the License.
1818
*/
1919

20-
import { ShardsOperationResponseBase } from '@_types/Base'
20+
import { ForceMergeResponseBody } from '@indices/forcemerge/_types/response'
2121

2222
export class Response {
23-
body: ShardsOperationResponseBase
23+
body: ForceMergeResponseBody
2424
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
import { ShardsOperationResponseBase } from '@_types/Base'
21+
22+
export class ForceMergeResponseBody extends ShardsOperationResponseBase {
23+
/**
24+
* task contains a task id returned when wait_for_completion=false,
25+
* you can use the task_id to get the status of the task at _tasks/<task_id>
26+
*/
27+
task?: string
28+
}

specification/indices/rollover/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ import { long } from '@_types/Numeric'
2222
import { Duration, DurationValue, EpochTime, UnitMillis } from '@_types/Time'
2323

2424
export class RolloverConditions {
25+
min_age?: Duration
2526
max_age?: Duration
2627
max_age_millis?: DurationValue<UnitMillis>
28+
min_docs?: long
2729
max_docs?: long
2830
max_size?: string
2931
max_size_bytes?: ByteSize
3032
max_primary_shard_size?: ByteSize
3133
max_primary_shard_size_bytes?: ByteSize
34+
min_primary_shard_docs?: long
35+
max_primary_shard_docs?: long
3236
}

0 commit comments

Comments
 (0)