-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Index Template API and auto create index (#4456)
- Loading branch information
Showing
125 changed files
with
7,954 additions
and
3,565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
version: 0.7 | ||
|
||
template_id: gh-archive | ||
|
||
index_id_patterns: | ||
- gh-archive* | ||
|
||
description: Index config template for the GH Archive dataset (gharchive.org) | ||
|
||
priority: 0 | ||
|
||
doc_mapping: | ||
field_mappings: | ||
- name: id | ||
type: text | ||
tokenizer: raw | ||
- name: type | ||
type: text | ||
fast: true | ||
tokenizer: raw | ||
- name: public | ||
type: bool | ||
fast: true | ||
- name: payload | ||
type: json | ||
tokenizer: default | ||
- name: org | ||
type: json | ||
tokenizer: default | ||
- name: repo | ||
type: json | ||
tokenizer: default | ||
- name: actor | ||
type: json | ||
tokenizer: default | ||
- name: other | ||
type: json | ||
tokenizer: default | ||
- name: created_at | ||
type: datetime | ||
fast: true | ||
input_formats: | ||
- rfc3339 | ||
fast_precision: seconds | ||
timestamp_field: created_at | ||
|
||
indexing_settings: | ||
commit_timeout_secs: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
version: 0.7 | ||
|
||
template_id: stackoverflow | ||
|
||
index_id_patterns: | ||
- stackoverflow* | ||
|
||
description: Index config template for the Stackoverflow tutorial (quickwit.io/docs/get-started/quickstart) | ||
|
||
priority: 0 | ||
|
||
doc_mapping: | ||
field_mappings: | ||
- name: title | ||
type: text | ||
tokenizer: default | ||
record: position | ||
stored: true | ||
- name: body | ||
type: text | ||
tokenizer: default | ||
record: position | ||
stored: true | ||
- name: creationDate | ||
type: datetime | ||
fast: true | ||
input_formats: | ||
- rfc3339 | ||
fast_precision: seconds | ||
timestamp_field: creationDate | ||
|
||
search_settings: | ||
default_search_fields: [title, body] | ||
|
||
indexing_settings: | ||
commit_timeout_secs: 10 |
Oops, something went wrong.