ropensci / aRxiv

Programmatic interface to the Arxiv API
https://docs.ropensci.org/aRxiv
Other
60 stars 10 forks source link

something of wrong? #52

Open migman63 opened 4 years ago

migman63 commented 4 years ago

Hi guys. Executing a very simple count: q='ti:"COVID-19"' z=arxiv_count(query=q) I get only 65 results, when trying the same query on aRxive web site produces 1144 results. What I'm doing of wrong?

Tx a lot

Manlio

kbroman commented 4 years ago

I think maybe the hyphen is the problem; if you search for "covid" you get many more.

migman63 commented 4 years ago

Hi Kbroman, and tx for your answer. You are right, have you any suggestion about how to solve the problem? Unfortunately the hyphen is the standard for searches about Covid-19 ... Moreover: do you know if search is case insensitive? In effect I have the same number of results searching for "COVID" and "covid". Thanks a lot

Manlio

migman63 commented 4 years ago

But in any case: a search for "covid" in the title using aRxiv web site produces 1170 results, using the R package 1102 There's any reason? Tx

kbroman commented 4 years ago

I think the problem is not the R package but the arXiv API itself. Here’s a question on stackoverflow reporting a similar issue.

migman63 commented 4 years ago

Yes, I agree with you about hyphen problem. In any case I verified that the ? character can be used, and at least for me it can be enough (e.g. "covid?19"). But I can't understand why a same simple query like: ti:"covid" produces a different number of results using API instead of aRxiv web direct query. Have you any idea?