forked from quickwit-oss/quickwit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_setup.quickwit.yaml
More file actions
128 lines (127 loc) · 2.8 KB
/
_setup.quickwit.yaml
File metadata and controls
128 lines (127 loc) · 2.8 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# 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, "auto_date": "2023-05-25T10:00:00Z"}
- {"ts": 1684993002, "not_fast": 1684993002, "auto_date": "2023-05-25T11:00:00Z"}
---
# 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/nested
status_code: null
---
method: POST
endpoint: indexes/
json:
version: "0.7"
index_id: nested
doc_mapping:
index_field_presence: true
# default mode is dynamic
field_mappings:
- name: json_text
type: json
indexed: true
- name: json_fast
type: json
stored: true
fast: true
- name: object_multi
type: object
field_mappings:
- name: object_text_field
type: text
- name: object_fast_field
type: u64
fast: true
- name: text_fast
type: text
fast: true
indexed: false
- name: text_raw
type: text
fast: false
indexed: true
tokenizer: raw
---
method: POST
endpoint: nested/ingest
params:
commit: force
ndjson:
- {"json_text": {"field_a": "hello", "field_b": "world"}}
- {"json_text": {"field_a": "hi"}}
- {"json_fast": {"field_c": 1}}
- {"object_multi": {"object_text_field": "multi hello"}}
- {"object_multi": {"object_fast_field": 1}}
- {"object_multi": {"object_fast_field": 2}}
- {"text_raw": "indexed-with-raw-tokenizer-dashes"}
- {"text_raw": "indexed with raw tokenizer dashes"}
- {"text_fast": "fast-text-value-dashes"}
- {"text_fast": "fast text value whitespaces"}
---
method: DELETE
endpoint: indexes/millisec
status_code: null
---
method: POST
endpoint: indexes/
json:
version: "0.7"
index_id: millisec
doc_mapping:
timestamp_field: ts
mode: strict
field_mappings:
- name: ts
type: datetime
fast: true
input_formats: ["rfc3339"]
fast_precision: milliseconds
---
method: POST
endpoint: millisec/ingest
params:
commit: force
ndjson:
- {"ts": "2022-12-16T10:00:56.297Z"}
- {"ts": "2022-12-16T10:00:57.000Z"}
- {"ts": "2022-12-16T10:00:57.297Z"}