Skip to content

Commit 83dbc05

Browse files
committed
Implement Index Template API and auto create index
1 parent c7f0414 commit 83dbc05

File tree

125 files changed

+7954
-3565
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+7954
-3565
lines changed

config/templates/gh-archive.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
version: 0.7
2+
3+
template_id: gh-archive
4+
5+
index_id_patterns:
6+
- gh-archive*
7+
8+
description: Index config template for the GH Archive dataset (gharchive.org)
9+
10+
priority: 0
11+
12+
doc_mapping:
13+
field_mappings:
14+
- name: id
15+
type: text
16+
tokenizer: raw
17+
- name: type
18+
type: text
19+
fast: true
20+
tokenizer: raw
21+
- name: public
22+
type: bool
23+
fast: true
24+
- name: payload
25+
type: json
26+
tokenizer: default
27+
- name: org
28+
type: json
29+
tokenizer: default
30+
- name: repo
31+
type: json
32+
tokenizer: default
33+
- name: actor
34+
type: json
35+
tokenizer: default
36+
- name: other
37+
type: json
38+
tokenizer: default
39+
- name: created_at
40+
type: datetime
41+
fast: true
42+
input_formats:
43+
- rfc3339
44+
fast_precision: seconds
45+
timestamp_field: created_at
46+
47+
indexing_settings:
48+
commit_timeout_secs: 10

config/templates/stackoverflow.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: 0.7
2+
3+
template_id: stackoverflow
4+
5+
index_id_patterns:
6+
- stackoverflow*
7+
8+
description: Index config template for the Stackoverflow tutorial (quickwit.io/docs/get-started/quickstart)
9+
10+
priority: 0
11+
12+
doc_mapping:
13+
field_mappings:
14+
- name: title
15+
type: text
16+
tokenizer: default
17+
record: position
18+
stored: true
19+
- name: body
20+
type: text
21+
tokenizer: default
22+
record: position
23+
stored: true
24+
- name: creationDate
25+
type: datetime
26+
fast: true
27+
input_formats:
28+
- rfc3339
29+
fast_precision: seconds
30+
timestamp_field: creationDate
31+
32+
search_settings:
33+
default_search_fields: [title, body]
34+
35+
indexing_settings:
36+
commit_timeout_secs: 10

0 commit comments

Comments
 (0)