Skip to content

Reorg indices #458

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 2 commits into from
May 10, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
make contrib
  • Loading branch information
delvedor committed May 10, 2021
commit 6033e027507af6de304be56de821a1d38d239350
446 changes: 223 additions & 223 deletions output/schema/schema.json

Large diffs are not rendered by default.

68 changes: 34 additions & 34 deletions output/typescript/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6864,7 +6864,7 @@ export interface ClusterClusterStateBlockIndex {
in_sync_allocations?: Record<string, string[]>
primary_terms?: Record<string, integer>
mappings?: Record<string, MappingTypeMapping>
rollover_info?: Record<string, IndicesRolloverIndicesRolloverConditions>
rollover_info?: Record<string, IndicesRolloverRolloverConditions>
timestamp_range?: Record<string, any>
system?: boolean
}
Expand Down Expand Up @@ -8924,6 +8924,12 @@ export interface IndicesPutTemplateRequest extends RequestBase {
export interface IndicesPutTemplateResponse extends AcknowledgedResponseBase {
}

export interface IndicesRecoveryFileDetails {
length: long
name: string
recovered: long
}

export interface IndicesRecoveryRecoveryBytes {
percent: Percentage
recovered?: ByteSize
Expand All @@ -8934,14 +8940,8 @@ export interface IndicesRecoveryRecoveryBytes {
total_in_bytes: ByteSize
}

export interface IndicesRecoveryRecoveryFileDetails {
length: long
name: string
recovered: long
}

export interface IndicesRecoveryRecoveryFiles {
details?: IndicesRecoveryRecoveryFileDetails[]
details?: IndicesRecoveryFileDetails[]
percent: Percentage
recovered: long
reused: long
Expand Down Expand Up @@ -8984,22 +8984,6 @@ export interface IndicesRecoveryRecoveryStatus {
shards: IndicesRecoveryShardRecovery[]
}

export interface IndicesRecoveryRecoveryTranslogStatus {
percent: Percentage
recovered: long
total: long
total_on_start: long
total_time?: string
total_time_in_millis: EpochMillis
}

export interface IndicesRecoveryRecoveryVerifyIndex {
check_index_time?: Time
check_index_time_in_millis: EpochMillis
total_time?: Time
total_time_in_millis: EpochMillis
}

export interface IndicesRecoveryRequest extends RequestBase {
index?: Indices
active_only?: boolean
Expand All @@ -9023,9 +9007,25 @@ export interface IndicesRecoveryShardRecovery {
target: IndicesRecoveryRecoveryOrigin
total_time?: DateString
total_time_in_millis: EpochMillis
translog: IndicesRecoveryRecoveryTranslogStatus
translog: IndicesRecoveryTranslogStatus
type: Type
verify_index: IndicesRecoveryRecoveryVerifyIndex
verify_index: IndicesRecoveryVerifyIndex
}

export interface IndicesRecoveryTranslogStatus {
percent: Percentage
recovered: long
total: long
total_on_start: long
total_time?: string
total_time_in_millis: EpochMillis
}

export interface IndicesRecoveryVerifyIndex {
check_index_time?: Time
check_index_time_in_millis: EpochMillis
total_time?: Time
total_time_in_millis: EpochMillis
}

export interface IndicesRefreshRequest extends RequestBase {
Expand Down Expand Up @@ -9085,13 +9085,6 @@ export interface IndicesResolveIndexResponse {
data_streams: IndicesResolveIndexResolveIndexDataStreamsItem[]
}

export interface IndicesRolloverIndicesRolloverConditions {
max_age?: Time
max_docs?: long
max_size?: string
max_primary_shard_size?: ByteSize
}

export interface IndicesRolloverRequest extends RequestBase {
alias: IndexAlias
new_index?: IndexName
Expand All @@ -9102,7 +9095,7 @@ export interface IndicesRolloverRequest extends RequestBase {
wait_for_active_shards?: WaitForActiveShards
body?: {
aliases?: Record<IndexName, IndicesAlias>
conditions?: IndicesRolloverIndicesRolloverConditions
conditions?: IndicesRolloverRolloverConditions
mappings?: Record<string, MappingTypeMapping> | MappingTypeMapping
settings?: Record<string, any>
}
Expand All @@ -9117,6 +9110,13 @@ export interface IndicesRolloverResponse extends AcknowledgedResponseBase {
shards_acknowledged: boolean
}

export interface IndicesRolloverRolloverConditions {
max_age?: Time
max_docs?: long
max_size?: string
max_primary_shard_size?: ByteSize
}

export interface IndicesSegmentsIndexSegment {
shards: Record<string, IndicesSegmentsShardsSegment | IndicesSegmentsShardsSegment[]>
}
Expand Down
2 changes: 1 addition & 1 deletion specification/indices/analyze/IndicesAnalyzeResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { AnalyzeDetail, AnalyzeToken } from "./types";
import { AnalyzeDetail, AnalyzeToken } from './types'

export class Response {
body: {
Expand Down
4 changes: 2 additions & 2 deletions specification/indices/analyze/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { long } from "@_types/Numeric"
import { long } from '@_types/Numeric'

export class AnalyzeDetail {
analyzer?: AnalyzerDetail
Expand Down Expand Up @@ -63,4 +63,4 @@ export type TextToAnalyze = string | Array<string>
export class TokenDetail {
name: string
tokens: ExplainAnalyzeToken[]
}
}
12 changes: 10 additions & 2 deletions specification/indices/recovery/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@
* under the License.
*/

import { ByteSize, Id, IndexName, Name, Type, Uuid, VersionString } from '@_types/common'
import {
ByteSize,
Id,
IndexName,
Name,
Type,
Uuid,
VersionString
} from '@_types/common'
import { Host, TransportAddress, Ip } from '@_types/Networking'
import { long, Percentage } from '@_types/Numeric'
import { Time, EpochMillis, DateString } from '@_types/Time'
Expand Down Expand Up @@ -115,4 +123,4 @@ export class ShardRecovery {
translog: TranslogStatus
type: Type
verify_index: VerifyIndex
}
}
2 changes: 1 addition & 1 deletion specification/indices/segments/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ export class ShardsSegment {
routing: ShardSegmentRouting
num_search_segments: integer
segments: Dictionary<string, Segment>
}
}
2 changes: 1 addition & 1 deletion specification/indices/shard_stores/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ export class ShardStoreException {

export class ShardStoreWrapper {
stores: ShardStore[]
}
}
2 changes: 1 addition & 1 deletion specification/indices/stats/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,4 @@ export class ShardStats {
translog: TranslogStats
warmer: WarmerStats
bulk?: BulkStats
}
}