Dear GBIF API users,
I would like to get some GBIF index statistics, e.g., Is it possible to
obtain all indexed fields in the elasticsearch occurrence index? I
already tried to get the mapping
http://api.gbif.org/v1/_mapping?pretty and
http://api.gbif.org/v1/occurence/_mapping?pretty and I also tried it
with the search (http://api.gbif.org/v1/occurrence/search) and a facet
on _field_names. { "query": { "match_all": {} }, "aggs": { "Field
Names": { "terms": { "field": "_field_names" }} } } Unfortunately, both
doesn't work. Is there any other opportunity to get all indexed fields? Thank you and best regards,
Felicitas Löffler
--
-------------------------------------------------------------------
Felicitas Löffler
Wissenschaftliche Mitarbeiterin/ Promotionsstudentin
Heinz-Nixdorf-Professur für verteilte Informationssysteme
Institut für Informatik
Friedrich-Schiller-Universität Jena
Leutragraben 1, Jentower, R17N02
07743 Jena
Germany
Telefon: +49 (0)3641 946413
http://fusion.cs.uni-jena.de
felicitas.loeffler(a)uni-jena.de
Hi William
I am very sorry to you (and everyone) that you are experiencing this. We have an unusual load coming on GBIF.org which is causing us some issues, and we are doing all we can to address this.
I hope things will be back to normal later today.
Please feel free to contact me directly if you continue to have issue (trobertson(a)gbif.org<mailto:trobertson@gbif.org>) after today.
Thanks,
Tim
From: API-users <api-users-bounces(a)lists.gbif.org> on behalf of William Gearty <wgearty(a)unl.edu>
Date: Monday, 4 November 2019 at 23.41
To: "API-users(a)lists.gbif.org" <API-users(a)lists.gbif.org>
Subject: [API-users] Intermittent outages??
Hi all,
I've noticed some intermittent outages lately, specifically with the occurrences API. I'm trying to query the occurrences API via rgbif for a bunch of taxa in a loop, and I keep getting "Error: 500 - Server error" and I have to restart my loop.
Any idea when the resource will be permanently stable again?
Thanks,
Will
[Image removed by sender.]
William Gearty
Postdoctoral Research Fellow
University of Nebraska–Lincoln
School of Biological Sciences
williamgearty.com<http://williamgearty.com>
Hi William,
It seems that a lot of users have been querying the search API lately, which puts a strain on the GBIF backend (especially it comes to deep paging) and makes it slow for everyone.
The solution is to use the download API instead.
In other words, use the occ_download()<https://www.rdocumentation.org/packages/rgbif/versions/1.3.0/topics/occ_dow…> function instead of the occ_search()<https://www.rdocumentation.org/packages/rgbif/versions/1.3.0/topics/occ_sea…> function.
Using the download API would also allow you to get all your species in one download making it more convenient for citations later on because you would have only one DOI to cite. This blogpost give an example of R code to generate a download of a long list of species: https://data-blog.gbif.org/post/downloading-long-species-lists-on-gbif/
I hope this helps!
Cheers
Marie
From: API-users <api-users-bounces(a)lists.gbif.org> on behalf of William Gearty <wgearty(a)unl.edu>
Date: Monday, 4 November 2019 at 23.41
To: "API-users(a)lists.gbif.org" <API-users(a)lists.gbif.org>
Subject: [API-users] Intermittent outages??
Hi all,
I've noticed some intermittent outages lately, specifically with the occurrences API. I'm trying to query the occurrences API via rgbif for a bunch of taxa in a loop, and I keep getting "Error: 500 - Server error" and I have to restart my loop.
Any idea when the resource will be permanently stable again?
Thanks,
Will
[https://ucomm.unl.edu/images/email-signature/Nebraska_N_RGB_small_on_white.…]
William Gearty
Postdoctoral Research Fellow
University of Nebraska–Lincoln
School of Biological Sciences
williamgearty.com<http://williamgearty.com>
Hi all,
I've noticed some intermittent outages lately, specifically with the occurrences API. I'm trying to query the occurrences API via rgbif for a bunch of taxa in a loop, and I keep getting "Error: 500 - Server error" and I have to restart my loop.
Any idea when the resource will be permanently stable again?
Thanks,
Will
[https://ucomm.unl.edu/images/email-signature/Nebraska_N_RGB_small_on_white.…]
William Gearty
Postdoctoral Research Fellow
University of Nebraska–Lincoln
School of Biological Sciences
williamgearty.com<http://williamgearty.com>