gbif / checklistbank

GBIF Checklist Bank
Apache License 2.0
31 stars 14 forks source link

Search for taxon name works only on complete names #266

Open jholetschek opened 1 year ago

jholetschek commented 1 year ago

For the LAND portal, we added common names to the "scientific name" filter, which is great. The downside is that this works only on complete names, for both scientific names. It would be great if results would pop up already when the name is not complete yet, for example after "Gänse" (> Gänseblümchen).

MortenHofft commented 1 year ago

This looks like an API issue

API example https://api.gbif.org/v1/species/search?q=G%C3%A4nse&qField=VERNACULAR Website equivalent: https://www.gbif.org/species/search?q=G%C3%A4nse&qField=VERNACULAR

None of them show Gänseblümchen https://api.gbif.org/v1/species/search?q=G%C3%A4nsebl%C3%BCmchen&qField=VERNACULAR

mdoering commented 1 year ago

This isn't auto complete / suggest, but a search and therefore expected behavior - apart from the search with Gänseblümchen not returning anything: https://www.gbif.org/species/3117424?vnOffset=20

MortenHofft commented 1 year ago

Ah, sorry @mdoering I completely forgot that, despite being my own implementation. For the LAND portal, @jholetschek wanted a scientific name filter that also supported vernacular names. To support that I created a "suggest" query that instead use search for both vernacular and scientific names, filter the vernacular names by the desired language and returns it as a suggestion.

Could you suggest another approach that would work better?