-
Notifications
You must be signed in to change notification settings - Fork 4
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
Query returning 0 results #66
Comments
thanks @imaa9 ! can you share the output of |
you wrote |
ah! thanks @sckott ! |
Even after correcting the "county" field to "country", the search returned zero matches. |
thanks for the update. i'll make sure the documentation says it's case sensitive |
@imaa9 So there's three issues here:
let me know if you have any further questions. |
Thanks a lot @sckott! but when I tried to expand this I got 0 results back. Maybe it was a server crash, but wondering whether this is the correct syntax. |
I don't know if there's a way to do multiple species other than the way you showed above. The documentation for the API is here https://github.com/VertNet/webapp/wiki/The-API-search-function with examples and such |
Hi @sckott ,
But the following 2 queries return no records:
or
Am I doing something wrong? thanks! |
looks like the parameter names have changed, working on a fix |
@ptitle can you reinstall |
note that the setup has changed. I realized that there are a ton of parameters one can use, and thought it was easiest to simplify the function so that each parameter is no longer defined in the function definition, but you are allowed to pass in any parameters that Vertnet allows - when you install and load the new version see the section |
Thanks @sckott ! I installed again from github, as specified. Ok, trying the same test:
So far so good... but the other tests that didn't work before still don't work, assuming I am specifying the correct arguments:
and
or
|
…ng about no results fix #67 URLdecode url before printing url so users can more easily determine if the query they sent is what they expect bump version
So with the change, now you have to give the parameters exactly as Vertnet expects them. In the previous version, partial matching was done, so If you look at the URLs from the searches printed as above you can see the difference (e.g.., if you give Another aspect, and I just updated the docs for this (can get on the reinstall), is that Vertnet for some reason will return no/zero results for a query on one function call, but return results 10 seconds later with the same exact function call. I've no idea why this happens, but it does. So if you get no results for a query youd expect results, try again a number of times, and if still no results, maybe there really aren't any, or the parameters aren't specified correctly. |
Hi @sckott , The following queries still don't return anything, but the URLs appear to indicate that I'm specifying things correctly, and I've tried the queries multiple times. But these are searches that really should be returning records.
or
Are you getting these results on your end? thanks! |
haha! in the change, I forgot to make sure all params that are booleans were converted to Vertnet's expected 0/1 instead of true/false - should be fixed now, reinstall |
Ok, that's much better. Thanks for the quick responses! |
rvertnet query returns 0 results, can't figure out what the bug is. Here, replaced my functioning email with a dummy email.
bigsearch(genus = "anolis",
year = c(">1900", "<2018"),
county = "jamaica",
email = "[email protected]",
rfile = "JamaicanSpecimenRecords")
The text was updated successfully, but these errors were encountered: