Skip to content

Commit

Permalink
fix: use institution name for searches
Browse files Browse the repository at this point in the history
  • Loading branch information
fboulnois committed Sep 27, 2023
1 parent 9a5e9e5 commit a708a21
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions src/pages/DatasetSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,38 @@ export const DatasetSearch = (props) => {
},
'/datalibrary_broad': {
query: {
'match': {
'submitter.institution.id': '150' // Broad Institute of MIT and Harvard
'match_phrase': {
'submitter.institution.name': 'The Broad Institute of MIT and Harvard'
}
},
icon: broadIcon,
title: 'Broad Data Library',
},
'/datalibrary_mgb': {
query: {
'match': {
'submitter.institution.id': '88' // Massachusetts General Hospital
'bool': {
'should': [
{
'match_phrase': {
'submitter.institution.name': 'Massachusetts General Hospital'
}
},
{
'match_phrase': {
'submitter.institution.name': 'Brigham and Women\'s Hospital'
}
},
{
'match_phrase': {
'submitter.institution.name': 'Faulkner Hospital' // TODO: identify exact name
}
},
{
'match_phrase': {
'submitter.institution.name': 'Spaulding Hospital' // TODO: identify exact name
}
}
]
}
},
icon: mgbIcon,
Expand Down

0 comments on commit a708a21

Please sign in to comment.