Skip to content

Commit e89fe60

Browse files
committed
moving error to the correct place, and adding ignored_fields
1 parent e86ebc9 commit e89fe60

File tree

5 files changed

+108
-29
lines changed

5 files changed

+108
-29
lines changed

output/openapi/elasticsearch-openapi.json

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

output/schema/schema-serverless.json

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

output/schema/schema.json

Lines changed: 53 additions & 14 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: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/simulate/ingest/SimulateIngestResponse.ts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,6 @@ export class Response {
3030

3131
export class SimulateIngestDocumentResult {
3232
doc?: IngestDocumentSimulation
33-
/**
34-
* Any error resulting from simulatng ingest on this doc. This can be an error generated by
35-
* executing a processor, or a mapping validation error when simulating indexing the resulting
36-
* doc.
37-
*/
38-
error?: ErrorCause
3933
}
4034

4135
/**
@@ -69,4 +63,23 @@ export class IngestDocumentSimulation
6963
* A list of the names of the pipelines executed on this document.
7064
*/
7165
executed_pipelines: Array<string>
66+
/**
67+
* A list of the fields that would be ignored at the indexing step. For example, a field whose
68+
* value is larger than the allowed limit would make it through all of the pipoelines, but
69+
* would not be indexed into Elasticsearch.
70+
*/
71+
ignored_fields?: Array<Dictionary<IgnoredFieldKey, string>>
72+
/**
73+
* Any error resulting from simulatng ingest on this doc. This can be an error generated by
74+
* executing a processor, or a mapping validation error when simulating indexing the resulting
75+
* doc.
76+
*/
77+
error?: ErrorCause
78+
}
79+
80+
/**
81+
* These are the names of the keys in a Dictionary in the ignored_fields Array.
82+
*/
83+
enum IgnoredFieldKey {
84+
field
7285
}

0 commit comments

Comments
 (0)