Issue 18750

Discrepancy between number of records returned in occurrence search and count API calls

18750
Reporter: nickyn
Type: Bug
Summary: Discrepancy between number of records returned in occurrence search and count API calls
Priority: Unassessed
Resolution: WontFix
Status: Closed
Created: 2016-09-27 18:32:09.561
Updated: 2017-10-10 16:10:31.633
Resolved: 2017-10-10 16:10:31.613
        
Description: Searches executed today (2016-09-27)
An API call against the occurrence count service returns a different number of records than is returned via the occurrence search API. The total returned by the occurrence search API is the same as is displayed on the portal.

http://api.gbif.org/v1/occurrence/count?taxonKey=7707728&basisOfRecord=PRESERVED_SPECIMEN&publishingCountry=FR
Returns 22003822

The occurrence search API (and the portal) both show 5583048:
http://api.gbif.org/v1/occurrence/search?limit=0&taxonKey=7707728&basisOfRecord=PRESERVED_SPECIMEN&publishingCountry=FR

http://www.gbif.org/occurrence/search?TAXON_KEY=7707728&BASIS_OF_RECORD=PRESERVED_SPECIMEN&PUBLISHING_COUNTRY=FR

This difference in counts is true for a number of countries.]]>
    


Author: hoefft
Comment: I'm afraid that is the issue we have had with the metrics API - it drifts. We are working to deprecate it and instead use the occurrence search for counts
Created: 2017-10-10 16:10:31.631
Updated: 2017-10-10 16:10:31.631