This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsemehr_elasticsearch_mapping.txt
106 lines (106 loc) · 2.16 KB
/
semehr_elasticsearch_mapping.txt
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
curl -XPUT -k -u USER 'ES_HOST_URL_WITH_INDEX_NAME' -d'
{
"mappings": {
"patient": {
"properties": {
"id": {
"type": "keyword"
},
"anns": {
"properties": {
"contexted_concept": {
"type": "text"
},
"CUI": {
"type": "keyword"
},
"appearances": {
"properties": {
"pmcid": {
"type": "text"
},
"offset_start": {
"type": "long"
},
"offset_end": {
"type": "long"
}
}
}
}
},
"articles": {
"properties": {
"eprid": {
"type": "keyword"
},
"fulltext": {
"type": "text"
}
}
}
},
"_source": {
"excludes": [
"articles.*"
]
}
},
"ctx_concept": {
"properties": {
"cui": {
"type": "keyword"
},
"negation": {
"type": "text"
},
"experiencer": {
"type": "text"
},
"temporality": {
"type": "text"
},
"prefLabel": {
"type": "text"
},
"vocabularies": {
"type": "text"
},
"STY": {
"type": "text"
}
}
},
"ann_insts": {
"properties": {
"anns": {
"properties": {
"instsCUI": {
"type": "keyword"
},
"appearances": {
"properties": {
"eprid": {
"type": "keyword"
},
"offset_end": {
"type": "long"
},
"offset_start": {
"type": "long"
}
}
},
"contexted_concept": {
"type": "text"
}
}
},
"patientId": {
"type": "keyword",
"index": "not_analyzed"
}
}
}
}
}'