13409
Reporter: mdoering
Assignee: mdoering
Type: Improvement
Summary: Use iso country codes in solr index
Description: The solr index in the registry uses the country enums name to persist and query the publishingCountry. Everywhere else we use the isocode as the parameter which should also be used here.
Priority: Critical
Resolution: Fixed
Status: Resolved
Created: 2013-06-26 17:57:15.581
Updated: 2014-04-29 10:50:04.413
Resolved: 2014-04-29 10:50:04.38
Author: kbraak@gbif.org
Created: 2013-07-05 12:42:46.794
Updated: 2013-07-05 12:42:46.794
Referring to the updated Registry2 web services ( see: http://dev.gbif.org/wiki/display/POR/Webservice+API )
/dataset and /organization both have Country filter parameters, that work with the enum name, not the ISO country code, e.g. http://staging.gbif.org:8080/registry2-ws/dataset?type=OCCURRENCE&country=SPAIN
We should used the ISO country code in these cases also, wouldn't you agree [~mdoering@gbif.org]?
Author: kbraak@gbif.org
Comment: Blocked, until a decision about whether to use the isoCountryCode versus country ENUM is reached.
Created: 2013-12-12 12:35:06.069
Updated: 2013-12-12 12:35:06.069
Author: mdoering@gbif.org
Comment: Is there any doubt to not use the iso codes? I thought that decision is taken
Created: 2013-12-12 15:21:04.932
Updated: 2013-12-12 15:21:04.932
Author: mdoering@gbif.org
Comment: Solr and even more importantly the search ws already uses iso country codes as search values
Created: 2014-04-29 10:50:04.411
Updated: 2014-04-29 10:50:04.411