-
Notifications
You must be signed in to change notification settings - Fork 5
[270] GtR mapping (also table name typo) #283
Changes from 77 commits
3999574
d5539dd
b51f3ef
bb8c330
9f4b2b5
6b6dbc1
a0b4030
ec05346
dae44aa
ac88d8f
ea98848
99e837c
da053d0
8101b92
ad9ae75
3df222f
2cb692b
ed10697
7184032
7267b3d
29389bd
bdb92bf
984291a
309f823
b933014
832c77f
2c2482b
9bab34e
cea95a8
0f190d5
326cf02
08fe6da
cec4dd0
1ef6e0e
c38af84
b5617fc
908cdec
cde6765
697a7b5
af41059
a146f01
2b460e7
fce71f2
3797ab7
8fc238d
74a0de0
ff52858
9682dc7
3d23881
74f6d3c
b00aeac
ebad7dd
fa48641
63c98fa
9fb40e8
414c62b
04921ff
2e0f881
aac29f1
e84f6f1
3d9e912
8ccc9e5
5a07b60
da1a84b
2945be2
717afa6
92234b5
4b05e43
ce88847
2e9a1c5
639cb44
9224666
cc21f32
ba62e05
13e0f9e
92ce96d
1931acb
bd60992
292f171
eb5b052
4359565
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"entity_type": "project", | ||
"tier0_to_tier1": { | ||
"_json_funding_project": "json_funding_project", | ||
"_json_outcomes_project": "json_outcomes_project", | ||
"_terms_continent_project": "terms_continent_project", | ||
"_terms_countries_project": "terms_countries_project", | ||
"_terms_instituteIds_project": "terms_instituteIds_project", | ||
"_terms_institutes_project": "terms_institutes_project", | ||
"_terms_iso2_project": "terms_iso2_project", | ||
"_terms_topics_project": "terms_topics_project", | ||
"abstractText": "textBody_abstract_project", | ||
"end": "date_end_project", | ||
"grantCategory": "type_category_funding", | ||
"id": "id_of_project", | ||
"leadFunder": "name_of_funder", | ||
"leadOrganisationDepartment": "name_leadOrgDepartment_project", | ||
"potentialImpact": "textBody_potentialImpact_project", | ||
"start": "date_start_project", | ||
"status": "status_of_project", | ||
"techAbstractText": "textBody_techAbstract_project", | ||
"title": "title_of_project" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
{ | ||
"mappings": { | ||
"dynamic": "strict", | ||
"properties": { | ||
"date_end_project": { | ||
"type": "date" | ||
}, | ||
"date_start_project": { | ||
"type": "date" | ||
}, | ||
"json_funding_project": { | ||
"properties": { | ||
"amount": { | ||
"type": "integer" | ||
}, | ||
"category": { | ||
"type": "keyword" | ||
}, | ||
"currency_code": { | ||
"type": "keyword" | ||
}, | ||
"end_date": { | ||
"type": "date" | ||
}, | ||
"start_date": { | ||
"type": "date" | ||
} | ||
}, | ||
"type": "nested" | ||
}, | ||
"json_outcomes_project": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure about this one: does this mean that the type is determined at runtime? or that it can have multiple types? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry I should have put a note here (I will write into the metadata): The
which all reflect different outcomes after the projects finished. For most projects, I believe that these are empty, but this is in desperate need of EDA before we can decide how to structure the data more formally. The plan was to dump all of these fields (where they exist) directly into this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK thanks a lot for the explainer, once this will be up we'll discuss about how to make EDA on this kind of fields, thanks! |
||
"dynamic": true, | ||
"type": "nested" | ||
}, | ||
"name_leadOrgDepartment_project": { | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"name_of_funder": { | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"status_of_project": { | ||
"type": "keyword" | ||
}, | ||
"terms_continent_project": { | ||
"type": "keyword" | ||
}, | ||
"terms_countries_project": { | ||
"type": "keyword" | ||
}, | ||
"terms_instituteIds_project": { | ||
"type": "keyword" | ||
}, | ||
"terms_institutes_project": { | ||
"analyzer": "terms_analyzer", | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"terms_iso2_project": { | ||
"type": "keyword" | ||
}, | ||
Comment on lines
+75
to
+77
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about Can we add some custom doc string in ES mappings? Like: "terms_iso2_project": {
"type": "keyword",
"__doc": "country ISO alpha 2 codes"
}, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. regarding regarding the docstring - it doesn't seem so - but there's nothing stopping us adding custom docstrings and then stripping them out again so I added an issue #284 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. awesome, thanks a lot |
||
"terms_topics_project": { | ||
"analyzer": "terms_analyzer", | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"textBody_abstract_project": { | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"textBody_potentialImpact_project": { | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"textBody_techAbstract_project": { | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"title_of_project": { | ||
"fields": { | ||
"keyword": { | ||
"type": "keyword" | ||
} | ||
}, | ||
"type": "text" | ||
}, | ||
"type_category_funding": { | ||
"type": "keyword" | ||
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing this issue is a little moot, since the table
gtr_doc_clusters
is empty