Open hughjonesd opened 5 months ago
Thank you for reporting this @hughjonesd. You're right, the comma is currently reserved for separating the filters in the query. search = "\"Hello, John\""
works because in that case you're using search, not filter. The OpenAlex team is aware of this issue and hope to address it soon.
The following code returns with a 403 error from openalex:
Using
title.search = "\"Hello, John\""
gives the same error. So does pre-encoding it withutils::URLencode()
. The openalex documentation isn't clear how to encode commas in search filters, so I'm not sure how to fix this.Using
search = "\"Hello, John\""
works OK, but this searches the abstract as well as the title.