-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathbulk.json
88 lines (88 loc) · 3.35 KB
/
bulk.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"bulk": {
"documentation": {
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html",
"description": "Allows to perform multiple index/update/delete operations in a single request."
},
"stability": "stable",
"visibility": "public",
"headers": {
"accept": ["application/json"],
"content_type": ["application/x-ndjson"]
},
"url": {
"paths": [
{
"path": "/_bulk",
"methods": ["POST", "PUT"]
},
{
"path": "/{index}/_bulk",
"methods": ["POST", "PUT"],
"parts": {
"index": {
"type": "string",
"description": "Default index for items which don't provide one"
}
}
}
]
},
"params": {
"wait_for_active_shards": {
"type": "string",
"description": "Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)"
},
"refresh": {
"type": "enum",
"options": ["true", "false", "wait_for"],
"description": "If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes."
},
"routing": {
"type": "string",
"description": "Specific routing value"
},
"timeout": {
"type": "time",
"description": "Explicit operation timeout"
},
"_source": {
"type": "list",
"description": "True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request"
},
"_source_excludes": {
"type": "list",
"description": "Default list of fields to exclude from the returned _source field, can be overridden on each sub-request"
},
"_source_includes": {
"type": "list",
"description": "Default list of fields to extract and return from the _source field, can be overridden on each sub-request"
},
"pipeline": {
"type": "string",
"description": "The pipeline id to preprocess incoming documents with"
},
"require_alias": {
"type": "boolean",
"description": "If true, the request’s actions must target an index alias. Defaults to false."
},
"require_data_stream": {
"type": "boolean",
"description": "If true, the request's actions must target a data stream (existing or to-be-created). Default to false"
},
"list_executed_pipelines": {
"type": "boolean",
"description": "Sets list_executed_pipelines for all incoming documents. Defaults to unset (false)"
},
"include_source_on_error": {
"type": "boolean",
"description": "True or false if to include the document source in the error message in case of parsing errors. Defaults to true."
}
},
"body": {
"description": "The operation definition and data (action-data pairs), separated by newlines",
"required": true,
"serialize": "bulk"
}
}
}