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
Strange API discrepency when lsid is genus #254
Comments
{"stored":false,"dataType":"string","indexed":true,"multivalue":false,"name":"lsid"} |
And this is a bit unexpected too: |
The user who raised this issue adds another url that returns 62 for Malva |
My passing thought on this is as follows, Suppose you have genus A having species A.x and A.y. There may be records that are just identified to genus level while others are identified to species level. If you request a list of occurrences of genus A there are two logical responses: either just the A records or A + A.x + A.y. If the latter then facets for each element of the sum would be reasonable. |
Interesting. As I understand it, for lsid:genus: |
Thanks @DuncanRowland @JimBacon. Yes, thats correct. So for For fq, this will just dumb filter for records assigned the ID of NHMSYS0000460576, so records assigned to the genus only. So yes, I'd recommend changing EasyMaps to use |
p.s. @JimBacon for the sake of compatibility, I don't suppose you can remember what the original easymap did when presented with a tvk that was a genus? |
@djtfmartin OK David, I can do this. :) |
I'm inclined to go with the original poster who said "I noticed that genus taxonomic keys only return a few records, where they used to return all species records". Additional documentation around this issue would be valuable. Thanks for your continuing contribution @DuncanRowland ! |
OK, this is done. |
p.s. |
Actually, no worries, I can do it. My NBN account it still working :) |
When the lsid is a genus (e.g. Malva), the fq filtering does not work as expected
https://records-ws.nbnatlas.org/occurrences/search?q=lsid:NHMSYS0000460576
Returns the correct value (I think, 19798 totalRecords)
https://records-ws.nbnatlas.org/occurrences/search?q=*:*&fq=lsid:NHMSYS0000460576
Only returns 62.
This is a problem because all easymap calls use fq filtering for lsid.
I could fix this (by making easymap do a straight q query),
but I think it would be better fixed in the API if it's returning the wrong results?
Example that does work (where lsid is a species, e.g. Fox)
https://records-ws.nbnatlas.org/occurrences/search?q=lsid:NHMSYS0000080188
https://records-ws.nbnatlas.org/occurrences/search?q=*:*&fq=lsid:NHMSYS0000080188
both return 165082.
The text was updated successfully, but these errors were encountered: