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

contrib: Remove redundant fields from affiliations, funders search #460

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sakshamarora1
Copy link
Contributor

closes: #459

@@ -42,12 +42,9 @@ class AffiliationsSearchOptions(SearchOptions):
# Aliases can sometimes be shorter, so we boost them a bit.
"aliases^5",
localized_title,
"id^2",
Copy link
Contributor

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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",
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@sakshamarora1 sakshamarora1 force-pushed the fix/affiliations_funder_search branch from 5a974c0 to 872fe8a Compare February 17, 2025 10:50
Copy link
Contributor

@jrcastro2 jrcastro2 left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error when searching affiliations: too_many_nested_clauses
4 participants