Skip to content

Commit 8fae4ab

Browse files
committed
Rough draft for chat index templates
1 parent b4f534c commit 8fae4ab

File tree

3 files changed

+199
-0
lines changed

3 files changed

+199
-0
lines changed
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"template": {
3+
"mappings": {
4+
"properties": {
5+
"id": {
6+
"type": "keyword"
7+
},
8+
"_allow_access_control": {
9+
"type": "keyword"
10+
},
11+
"_deny_access_control": {
12+
"type": "keyword"
13+
},
14+
"title": {
15+
"type": "text",
16+
"fields": {
17+
"keyword": {
18+
"type": "keyword"
19+
}
20+
},
21+
"copy_to": [
22+
"content_semantic"
23+
]
24+
},
25+
"description": {
26+
"type": "text",
27+
"copy_to": [
28+
"content_semantic"
29+
]
30+
},
31+
"content": {
32+
"type": "text",
33+
"copy_to": [
34+
"content_semantic"
35+
]
36+
},
37+
"content_semantic": {
38+
"type": "semantic_text"
39+
},
40+
"url": {
41+
"type": "keyword"
42+
},
43+
"type": {
44+
"type": "keyword"
45+
},
46+
"provenance": {
47+
"type": "keyword"
48+
},
49+
"owner": {
50+
"properties": {
51+
"name": {
52+
"type": "text",
53+
"fields": {
54+
"keyword": {
55+
"type": "keyword"
56+
}
57+
}
58+
},
59+
"email_address": {
60+
"type": "keyword"
61+
},
62+
"id": {
63+
"type": "keyword"
64+
}
65+
}
66+
},
67+
"keywords": {
68+
"type": "text"
69+
},
70+
"tags": {
71+
"type": "keyword"
72+
},
73+
"created_at": {
74+
"type": "date"
75+
},
76+
"updated_at": {
77+
"type": "date"
78+
},
79+
"metadata": {
80+
"dynamic": true,
81+
"properties": {}
82+
}
83+
}
84+
}
85+
}
86+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"template": {
3+
"mappings": {
4+
"properties": {
5+
"comments": {
6+
"type": "nested",
7+
"properties": {
8+
"id": {
9+
"type": "keyword"
10+
},
11+
"author": {
12+
"properties": {
13+
"email": {
14+
"type": "keyword"
15+
},
16+
"name": {
17+
"type": "text",
18+
"fields": {
19+
"keyword": {
20+
"type": "keyword"
21+
}
22+
}
23+
},
24+
"id": {
25+
"type": "keyword"
26+
}
27+
}
28+
},
29+
"content": {
30+
"type": "text"
31+
},
32+
"replies_to": {
33+
"type": "keyword"
34+
},
35+
"created_at": {
36+
"type": "date"
37+
},
38+
"updated_at": {
39+
"type": "date"
40+
}
41+
}
42+
}
43+
}
44+
}
45+
}
46+
}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
"index_patterns": ["content-chat-support-v1-*"],
3+
"template": {
4+
"mappings": {
5+
"properties": {
6+
"metadata": {
7+
"properties": {
8+
"support": {
9+
"properties": {
10+
"status": {
11+
"type": "keyword"
12+
},
13+
"assignee": {
14+
"properties": {
15+
"name": {
16+
"type": "text",
17+
"fields": {
18+
"keyword": {
19+
"type": "keyword"
20+
}
21+
}
22+
},
23+
"email_address": {
24+
"type": "keyword"
25+
},
26+
"id": {
27+
"type": "keyword"
28+
}
29+
}
30+
},
31+
"category": {
32+
"type": "keyword"
33+
},
34+
"customer": {
35+
"properties": {
36+
"name": {
37+
"type": "text",
38+
"fields": {
39+
"keyword": {
40+
"type": "keyword"
41+
}
42+
}
43+
},
44+
"email_address": {
45+
"type": "keyword"
46+
},
47+
"id": {
48+
"type": "keyword"
49+
}
50+
}
51+
},
52+
"resolved_at": {
53+
"type": "date"
54+
},
55+
"urgency": {
56+
"type": "keyword"
57+
}
58+
}
59+
}
60+
}
61+
}
62+
}
63+
}
64+
},
65+
"composed_of": ["base-template", "comments-template"],
66+
"version": 1
67+
}

0 commit comments

Comments
 (0)