Skip to content

Fix issues in indices API - java-client+recordings #1941

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

Merged
merged 7 commits into from
Oct 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
202 changes: 148 additions & 54 deletions output/schema/schema.json

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions output/schema/validation-errors.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions specification/_types/mapping/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export class DateNanosProperty extends DocValuesPropertyBase {

export class JoinProperty extends PropertyBase {
relations?: Dictionary<RelationName, RelationName | RelationName[]>
eager_global_ordinals?: boolean
type: 'join'
}

Expand Down
3 changes: 2 additions & 1 deletion specification/indices/_types/IndexSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class SettingsSimilarity {
}

export class SettingsSimilarityBm25 {
b: integer
b: double
discount_overlaps: boolean
k1: double
type: 'BM25'
Expand Down Expand Up @@ -261,6 +261,7 @@ export enum IndexCheckOnStartup {

export class IndexVersioning {
created?: VersionString
created_string?: string
}

export class IndexSettingsLifecycle {
Expand Down
4 changes: 2 additions & 2 deletions specification/indices/forcemerge/IndicesForceMergeResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* under the License.
*/

import { ShardsOperationResponseBase } from '@_types/Base'
import { ForceMergeResponseBody } from '@indices/forcemerge/_types/response'

export class Response {
body: ShardsOperationResponseBase
body: ForceMergeResponseBody
}
28 changes: 28 additions & 0 deletions specification/indices/forcemerge/_types/response.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

import { ShardsOperationResponseBase } from '@_types/Base'

export class ForceMergeResponseBody extends ShardsOperationResponseBase {
/**
* task contains a task id returned when wait_for_completion=false,
* you can use the task_id to get the status of the task at _tasks/<task_id>
*/
task?: string
}
4 changes: 4 additions & 0 deletions specification/indices/rollover/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ import { long } from '@_types/Numeric'
import { Duration, DurationValue, EpochTime, UnitMillis } from '@_types/Time'

export class RolloverConditions {
min_age?: Duration
max_age?: Duration
max_age_millis?: DurationValue<UnitMillis>
min_docs?: long
max_docs?: long
max_size?: string
max_size_bytes?: ByteSize
max_primary_shard_size?: ByteSize
max_primary_shard_size_bytes?: ByteSize
min_primary_shard_docs?: long
max_primary_shard_docs?: long
}