Issue 14249

Species suggest returns nonsense for words with spaces

14249
Reporter: mdoering
Type: Bug
Summary: Species suggest returns nonsense for words with spaces
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2013-10-17 12:29:25.221
Updated: 2017-05-23 09:35:59.069
Resolved: 2017-05-23 09:35:58.959
        
Description: None of the names returned here are in the genus Puma:
http://api.gbif.org/v0.9/species/suggest?q=Puma%20con&datasetKey=16c3f9cb-4b19-4553-ac8e-ebb90003aa02&rank=SUBSPECIES]]>
    


Author: mdoering@gbif.org
Created: 2013-10-17 12:35:59.683
Updated: 2013-10-17 12:35:59.683
        
This seems to also apply to the dataset suggest:
http://api.gbif.org/v0.9/dataset/suggest?q=puma%20con
    


Author: fmendez@gbif.org
Comment: in those 2 cases there are not partial matches for the pattern "puma con"...then the service tries with each component of the phrase: "pum" and "con"..and for both cases the pattern "pum" does not return results but the pattern "con" does it; that's why the results for each case look discordant using "puma con"...this can be improved by highlighting the portions of the returned results that matched against the search criteria or adding the highlighting logic to client side to show those matches.
Created: 2014-04-24 11:18:16.587
Updated: 2014-04-24 11:18:16.587