adsabs / AutomatedIngestReport

Gather data and create report on the state of ingest data.
MIT License
0 stars 1 forks source link

Daily report is undercounting the number of bibcodes. #38

Closed seasidesparrow closed 3 years ago

seasidesparrow commented 3 years ago

The API query response that is used to generate the number of citations in Bumblebee also contains a number data['stat']['stats_fields']['citation_counts']['count'] which is the number of bibcodes with citation metrics but is not necessarily the number of bibcodes; a small number of bibcodes may not have this metric and the count of those is captured in ....['missing']. So the correct number of bibcodes in Bumblebee is stat['count'] + stat['missing']. Alternately, the count of bibcodes can be obtained from data['response']['numfound'].