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

Country Code "RU" #20

Open
kevinlove opened this issue Nov 23, 2016 · 1 comment
Open

Country Code "RU" #20

kevinlove opened this issue Nov 23, 2016 · 1 comment
Labels

Comments

@kevinlove
Copy link

I'm not getting back any summary results for records that contain the country code "RU" when using the field "countrycode".

The recordset of interest: https://www.idigbio.org/portal/recordsets/b3d38693-5f9b-484d-aca3-6cefcc5b08e0

Has 1,850 records from the country "russia"

Summary Endpoints

Recordset: http://search.idigbio.org/v2/summary/top/records/?rq={%22recordset%22:%22b3d38693-5f9b-484d-aca3-6cefcc5b08e0%22}&top_fields=[%22countrycode%22]&count=100

Specimen record: http://search.idigbio.org/v2/summary/top/records/?rq={%22uuid%22:[%223f9f0c49-7b30-42f1-a42c-7f7721f4e88d%22]}&top_fields=[%22countrycode%22]

@danstoner
Copy link
Contributor

Here is individual example of a record from that recordset that contains "dwc:country": "Russia" and also provides "dwc:countryCode": "RU".

https://www.idigbio.org/portal/records/3f9f0c49-7b30-42f1-a42c-7f7721f4e88d

We don't currently have a match for "russia" in the locality dictionary (in idb-backend/idb/data_tables/locality_data.py).

Despite the fact that "russia" could include other modern countries due to geopolitical changes, we probably ought to map "russia" to "russian federation".

https://en.wikipedia.org/wiki/ISO_3166-1

For some reason the RU countryCode is not getting indexed properly for this record (there is no index term "countrycode" on this record / these records).

@danstoner danstoner added the bug label Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants