Solr query via CURL - [globbing] bad range in column Solr query via CURL - [globbing] bad range in column curl curl

Solr query via CURL - [globbing] bad range in column


Just pass to curl the parameter -g/--globoff

This option switches off the "URL globbing parser". When you setthis option, you can specify URLs that contain the letters {}[]without having them being interpreted by curl itself. Note thatthese letters are not normal legal URL contents but they should be
encoded according to the URI standard.

On the other hand the browser silently converts the letters {}[] and submit the query successfully.

So all you have to do is use the curl parameter or encode the query string before the submit.

I suppose in this way should work:

curl --globoff 'http://localhost:8983/solr/test/select?fl=*,[child%20parentFilter=path:1.parent%20childFilter=path:2.parent.child]&indent=on&q={!parent%20which=%22path:1.parent%22}&wt=json'