Issue 18041

Remove NameUsageSearchResult.numOccurrences

18041
Reporter: mdoering
Type: Improvement
Summary: Remove NameUsageSearchResult.numOccurrences
Priority: Major
Status: Open
Created: 2015-11-18 12:26:36.921
Updated: 2015-11-18 12:27:15.12
        
Description: The species search result has an unused numOccurrences property which is always zero. As the occurrence metrics are changing in real time it is not feasable to update that proeprty in the checklistbank solr index.

Instead of exposing a bad zero property it is proposed to remove the property from the API although this is stricly not backwards compatible.

https://github.com/gbif/gbif-api/blob/master/src/main/java/org/gbif/api/model/checklistbank/search/NameUsageSearchResult.java#L91]]>
    


Author: mdoering@gbif.org
Created: 2015-11-18 12:27:15.12
Updated: 2015-11-18 12:27:15.12
        
http://api.gbif.org/v1/occurrence/count?taxonKey=3134959
http://api.gbif.org/v1/species/3134959


From Peter Desmet on API mailing list:
-----
In the species/search API, one of the properties of a taxon is "numOccurrences", which I assume is the number of occurrences across GBIF for this taxon. The value seems to be always "0" though.

Example:

http://api.gbif.org/v1/species/search?datasetKey=d7dddbf4-2cf0-4f39-9b2a-bb099caae36c&rank=species&status=accepted

First result:

http://www.gbif.org/species/3134959

On that page you can see 47,617 occurrences, 332 infraspecies. The API however gives:

numOccurrences: 0
numDescendants: 332 (= correct)