ckan / ckanapi

A command line interface and Python module for accessing the CKAN Action API
Other
176 stars 74 forks source link

dataset search: query with white space #200

Open aborruso opened 2 years ago

aborruso commented 2 years ago

Hi, I would like to emulate this browser query (fq=maintainer:Comune\%20di\%20Arezzo) in the shell.

It works in the browser, but if I run

ckanapi -r https://dati.gov.it/opendata/ search datasets fq='(maintainer:"Comune\ di\ Arezzo")'

I have 504 error. What's wrong in my command?

Strangely the same query works via action:

ckanapi -r https://dati.gov.it/opendata/ action package_search fq='(maintainer:"Comune\ di\ Arezzo")'

Thank you