Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1687 evidence loading missing genetics #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions scripts/ES/index_settings_evidence.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"mappings": {
"dynamic_templates": [
{
"nesteds": {
"match_mapping_type": "object",
"match": "facet_*",
"mapping": {
"type": "nested"
}
}
}
],
"properties": {
"oddsRatio": {
"type": "double"
},
"oddsRatioConfidenceIntervalLower": {
"type": "double"
},
"oddsRatioConfidenceIntervalUpper": {
"type": "double"
}
}
},
"settings": {
"index": {
"number_of_replicas": 0,
"number_of_shards": 5
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ do
export ID='id'
export INDEX_NAME="${token}"
export INPUT="${full_folder}"
export INDEX_SETTINGS=$PREFIX_DATA/index_settings.json
export INDEX_SETTINGS=$PREFIX_DATA/index_settings_evidence.json

/tmp/load_json_esbulk.sh
done
Expand Down
1 change: 1 addition & 0 deletions terraform_create_images/modules/posvm/scripts/load_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sudo chmod 555 load_json_esbulk.sh
sudo wget -O /tmp/data/index_settings.json https://raw.githubusercontent.com/opentargets/platform-etl-backend/master/elasticsearch/index_settings.json
sudo wget -O /tmp/data/index_settings_search_known_drugs.json https://raw.githubusercontent.com/opentargets/platform-etl-backend/master/elasticsearch/index_settings_search_known_drugs.json
sudo wget -O /tmp/data/index_settings_search.json https://raw.githubusercontent.com/opentargets/platform-etl-backend/master/elasticsearch/index_settings_search.json
sudo wget -O /tmp/data/index_settings_evidence.json https://raw.githubusercontent.com/opentargets/platform-etl-backend/master/elasticsearch/index_settings_evidence.json

export ES=${ELASTICSEARCH_URI}:9200
export PREFIX_DATA=/tmp/data/
Expand Down