adsabs / adsabs-dev-api

Developer API service description and example client code
163 stars 58 forks source link

Year field not respected #33

Closed borisrev closed 7 years ago

borisrev commented 7 years ago

curl -H "Authorization: Bearer mytoken" "https://api.adsabs.harvard.edu/v1/search/bigquery?q=aff:%22harvard%22&year:2001&rows=10&fl=doi,title,year"

Returns items from many different years. I've tried surrounding 2001 with %22 (quotes), but no dice. I also tried the [year to year] format but similarly had no luck.

Thank you again! (And for your quick reply to the last issue!)

Thank you, Boris

romanchyla commented 7 years ago

that's because the 'year:2001' must be a part of the query ('q' parameter)

q=aff:%22harvard%22+AND+year:2001

borisrev commented 7 years ago

Great. Thank you very much.