-
Notifications
You must be signed in to change notification settings - Fork 449
/
Copy path_setup.quickwit.yaml
113 lines (113 loc) · 2.18 KB
/
_setup.quickwit.yaml
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# Delete possibly remaining index
method: DELETE
endpoint: indexes/simple
status_code: null
---
# Create index
method: POST
endpoint: indexes/
json:
version: "0.7"
index_id: simple
doc_mapping:
timestamp_field: ts
mode: dynamic
field_mappings:
- name: ts
type: datetime
fast: true
- name: not_fast
type: datetime
fast: true
dynamic_mapping:
tokenizer: default
expand_dots: true
fast: true
---
# Ingest documents
method: POST
endpoint: simple/ingest
params:
commit: force
ndjson:
- {"ts": 1684993001, "not_fast": 1684993001}
- {"ts": 1684993002, "not_fast": 1684993002}
---
# Ingest documents split #2
method: POST
endpoint: simple/ingest
params:
commit: force
ndjson:
- {"ts": 1684993003, "not_fast": 1684993003}
- {"ts": 1684993004, "not_fast": 1684993004}
# a missing timestamp
- {"not_fast": 1684993003}
---
method: DELETE
endpoint: indexes/tagged
status_code: null
---
method: POST
endpoint: indexes/
json:
version: "0.7"
index_id: tagged
doc_mapping:
field_mappings:
- name: seq
type: u64
- name: tag
type: u64
tag_fields: ["tag"]
---
method: POST
endpoint: tagged/ingest
params:
commit: force
ndjson:
- {"seq": 1, "tag": 1}
- {"seq": 2, "tag": 2}
---method: POST
endpoint: tagged/ingest
params:
commit: force
ndjson:
- {"seq": 1, "tag": 1}
- {"seq": 3, "tag": null}
---
method: POST
endpoint: tagged/ingest
params:
commit: force
ndjson:
- {"seq": 4, "tag": 1}
---
method: DELETE
endpoint: indexes/empty-string
status_code: null
---
# Create index
method: POST
endpoint: indexes/
json:
version: "0.7"
index_id: empty-string
doc_mapping:
mode: dynamic
field_mappings:
- name: str
type: text
- name: str_array
type: array<text>
---
# Ingest documents
method: POST
endpoint: empty-string/ingest
params:
commit: force
ndjson:
- {"str": "abc", "str_array": ["abc", "def"], "dyn_str": "abc", "dyn_str_array": ["abc", "def"]}
- {"str": "", "str_array": [""], "dyn_str": "", "dyn_str_array": [""]}
- {"str": "", "str_array": ["ghi", ""], "dyn_str": "", "dyn_str_array": ["ghi", ""]}
- {"str_array": [], "dyn_str_array": []}