-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.http
More file actions
71 lines (64 loc) · 1.22 KB
/
Copy pathREADME.http
File metadata and controls
71 lines (64 loc) · 1.22 KB
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
GET _cat/plugins
GET _nodes/plugins
GET _nodes/ingest?filter_path=nodes.*.ingest.processors
PUT _ingest/pipeline/my-pipeline
{
"description": "My optional pipeline description",
"processors": [
{
"ingest_rest": {
"field": "foo",
"target_field": "bar",
"endpoint":"https://control-plane-gateway-44gp1iu3.uc.gateway.dev/mcplusa/models/predict",
"model_id": "7e009044-17cd-4132-b43f-cfd5cc5c61fd",
"task": "named_entity_recognition",
"content_type":"application/json",
"method": "POST",
"read_timeout": 100000,
"connect_timeout": 100000
}
}
]
}
GET _ingest/pipeline
DELETE /my_index
PUT /my_index
{
"mappings": {
"properties": {
"foo": {
"type": "text"
},
"bar": {
"type": "text"
}
}
}
}
POST /my_index/_doc?pipeline=my-pipeline
{
"foo": "hello",
"bar": "test"
}
GET /my_index/_search
POST _ingest/pipeline/_simulate
{
"pipeline": {
"description": "My pipeline",
"processors": [
{
"ingest_rest": {
"field": "foo",
"target_field": "bar"
}
}
]
},
"docs": [
{
"_source": {
"foo": "your_value"
}
}
]
}