Issue 14149

should all species API searches use the q parameter?

Reporter: mdoering
Type: Improvement
Summary: should all species API searches use the q parameter?
Description: we mix name and q as the main search parameter, is this good?
Priority: Major
Resolution: WontFix
Status: Closed
Created: 2013-10-06 09:24:44.583
Updated: 2014-06-24 10:55:04.224
Resolved: 2014-06-24 10:55:04.191

Created: 2013-10-07 09:22:01.309
Updated: 2013-10-07 09:22:01.309
There's something that makes a difference between the 2 services:
species/search?q=pattern searches not only name but also, descriptions, vernacular names and all the text fields that we are indexing
species/match?name=namePattern searches only for names as far as I know...maybe here we can use 'q' too as an alias to the name parameter to avoid confusion.

Comment: As we quickly approach the release of v1 of our API, a decision needs to be taken soon on such an issue [] and [].
Created: 2013-12-20 12:40:24.24
Updated: 2013-12-20 12:40:24.24

Comment: name parameter implies it is just on the name and does a straight match instead of "q" being used for full text searches. We'll leave it
Created: 2014-06-24 10:55:04.221
Updated: 2014-06-24 10:55:04.221