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

[BUG] Adding letter to search term filters out results that still share the same prefix #282

Open
bchu1 opened this issue Nov 27, 2024 · 0 comments
Labels
bug Something is not working as defined

Comments

@bchu1
Copy link

bchu1 commented Nov 27, 2024

Version
v2

Describe the bug
https://api.ror.org/v2/organizations?query=chan%20z returns entries for:

  • "https://ror.org/0263t7p64" with ror_display/label "Chan Zuckerberg Biohub New York"
  • "https://ror.org/02qenvm24" with ror_display/label "Chan Zuckerberg Initiative (United States)"
  • "https://ror.org/014nxkk19" with ror_display/label "Chan Zuckerberg Biohub Chicago"
  • "https://ror.org/00knt4f32" with ror_display/label "Chan Zuckerberg Biohub San Francisco"

https://api.ror.org/v2/organizations?query=chan%20zu only includes:

  • "https://ror.org/014nxkk19" with ror_display/label "Chan Zuckerberg Biohub Chicago"
  • "https://ror.org/00knt4f32" with ror_display/label "Chan Zuckerberg Biohub San Francisco"

To Reproduce
Steps to reproduce the behavior:

  1. Query https://api.ror.org/v2/organizations?query=chan%20z
  2. Query https://api.ror.org/v2/organizations?query=chan%20zu

Expected behavior
The second query should also include all 4 of the results listed in the first query.

@bchu1 bchu1 added the bug Something is not working as defined label Nov 27, 2024
@bchu1 bchu1 changed the title [BUG] More specific search prefixes don't include results from less specific prefixes [BUG] Adding letter to search term filters out results that still share the same prefix Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working as defined
Projects
None yet
Development

No branches or pull requests

1 participant