ropensci / europepmc

R Interface to Europe PMC RESTful Web Service
https://docs.ropensci.org/europepmc
28 stars 8 forks source link

Counter-intuitive behaviour of synonym search #27

Closed njahn82 closed 6 years ago

njahn82 commented 6 years ago

Sent the following message to Europe PMC helpdesk asking for help.

Dear Europe PMC team,

I just noticed counter-intuitive results when using the REST API with
the synonym parameter:

A query with the option synonym=false gives more results than using
synonym=true.

Compare

http://www.ebi.ac.uk/europepmc/webservices/rest/profile?query=(FIRST_PDATE:[2015-01-01+TO+2015-12-31])%20AND%20malaria%20AND%20SRC:med&synonym=false&format=json

which gives "count": 8324

with

http://www.ebi.ac.uk/europepmc/webservices/rest/profile?query=(FIRST_PDATE:[2015-01-01+TO+2015-12-31])%20AND%20malaria%20AND%20SRC:med&synonym=true&format=json

which gives "count": 8036

Can you confirm?

Best

Najko