-
Notifications
You must be signed in to change notification settings - Fork 125
/
post_schema.json
102 lines (97 loc) · 4.32 KB
/
post_schema.json
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
{
"settings": {
"index": {
"number_of_shards": 6,
"number_of_replicas": 1,
"refresh_interval": "5s",
"analysis": {
"analyzer": {
"default": {
"type": "custom",
"tokenizer": "standard",
"filter": [ "lowercase", "asciifolding" ]
},
"textIcu": {
"type": "custom",
"tokenizer": "icu_tokenizer",
"char_filter": [ "icu_normalizer" ],
"filter": [ "icu_folding" ]
},
"textIcuSearch": {
"type": "custom",
"tokenizer": "icu_tokenizer",
"char_filter": [ "icu_normalizer" ],
"filter": [ "icu_folding" ]
},
"textJapanese": {
"type": "custom",
"tokenizer": "kuromoji_tokenizer",
"char_filter": [ "icu_normalizer" ],
"filter": [
"kuromoji_baseform",
"kuromoji_part_of_speech",
"cjk_width",
"ja_stop",
"kuromoji_stemmer",
"lowercase"
]
},
"textJapaneseSearch": {
"type": "custom",
"tokenizer": "kuromoji_tokenizer",
"char_filter": [ "icu_normalizer" ],
"filter": [
"kuromoji_baseform",
"kuromoji_part_of_speech",
"cjk_width",
"ja_stop",
"kuromoji_stemmer",
"lowercase"
]
}
},
"normalizer": {
"default": {
"type": "custom",
"char_filter": [],
"filter": ["lowercase"]
},
"caseSensitive": {
"type": "custom",
"char_filter": [],
"filter": []
}
}
}
}
},
"mappings": {
"dynamic": false,
"properties": {
"doc_index_ts": { "type": "date" },
"did": { "type": "keyword", "normalizer": "default", "doc_values": false },
"record_rkey": { "type": "keyword", "normalizer": "default", "doc_values": false },
"record_cid": { "type": "keyword", "normalizer": "default", "doc_values": false },
"created_at": { "type": "date" },
"text": { "type": "text", "analyzer": "textIcu", "search_analyzer": "textIcuSearch", "copy_to": "everything" },
"text_ja": { "type": "text", "analyzer": "textJapanese", "search_analyzer": "textJapaneseSearch", "copy_to": "everything_ja" },
"lang_code": { "type": "keyword", "normalizer": "default" },
"lang_code_iso2": { "type": "keyword", "normalizer": "default" },
"mention_did": { "type": "keyword", "normalizer": "default" },
"embed_aturi": { "type": "keyword", "normalizer": "default" },
"reply_root_aturi": { "type": "keyword", "normalizer": "default" },
"embed_img_count": { "type": "integer" },
"embed_img_alt_text": { "type": "text", "analyzer": "textIcu", "search_analyzer": "textIcuSearch", "copy_to": "everything" },
"embed_img_alt_text_ja": { "type": "text", "analyzer": "textJapanese", "search_analyzer": "textJapaneseSearch", "copy_to": "everything_ja" },
"self_label": { "type": "keyword", "normalizer": "default" },
"url": { "type": "keyword", "normalizer": "default" },
"domain": { "type": "keyword", "normalizer": "default" },
"tag": { "type": "keyword", "normalizer": "default" },
"emoji": { "type": "keyword", "normalizer": "caseSensitive" },
"likesFuzzy": { "type": "integer" },
"everything": { "type": "text", "analyzer": "textIcu", "search_analyzer": "textIcuSearch" },
"everything_ja": { "type": "text", "analyzer": "textJapanese", "search_analyzer": "textJapaneseSearch" },
"lang": { "type": "alias", "path": "lang_code_iso2" }
}
}
}