-
Notifications
You must be signed in to change notification settings - Fork 42
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
contrib: Remove redundant fields from affiliations, funders search #460
base: master
Are you sure you want to change the base?
contrib: Remove redundant fields from affiliations, funders search #460
Conversation
@@ -42,12 +42,9 @@ class AffiliationsSearchOptions(SearchOptions): | |||
# Aliases can sometimes be shorter, so we boost them a bit. | |||
"aliases^5", | |||
localized_title, | |||
"id^2", |
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.
I think this is going to break searching by ROR. The test data might be misleading here…in real data the id isn’t the same as the acronym.
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.
Maybe not because of identifiers…but could you add a test?
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.
Thanks! I've added a test, it works
# Allow to search identifiers directly (e.g. ROR) | ||
"identifiers.identifier", | ||
"country", |
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.
This might make it difficult to disambiguate funders with the same name but in different countries.
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.
So, the country is the abbreviation and the country_name is the full name of the country, which is what is shown in the UI too. I've also added a test for search with country.
5a974c0
to
872fe8a
Compare
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.
Peer reviewed with @ntarocco
closes: #459