Re: Error in indexing JSON with space in value

2018-03-22 Thread Zheng Lin Edwin Yeo
Thanks for the input. I have got this to work by using cygwin. Regards, Edwin On 23 March 2018 at 07:04, Chris Hostetter wrote: > : > : Ah, there's the extra bit of context: > : > PS C:\curl> .\curl ' > : > : You're using Windows perhaps? If so, it's probably a

Re: Error in indexing JSON with space in value

2018-03-22 Thread Zheng Lin Edwin Yeo
Yes, I'm running this on Windows, using Windows Powershell "curl" command. Will try out other tools like cygwin. Thanks you. Regards, Edwin On 23 March 2018 at 06:52, Yonik Seeley wrote: > Ah, there's the extra bit of context: > > PS C:\curl> .\curl ' > > You're using

Re: Error in indexing JSON with space in value

2018-03-22 Thread Chris Hostetter
: : Ah, there's the extra bit of context: : > PS C:\curl> .\curl ' : : You're using Windows perhaps? If so, it's probably a shell issue : getting all of the data to the "curl" command. Yep.. and you cna even see in the trace output that curl thinks the entire JSON payload you want to send is

Re: Error in indexing JSON with space in value

2018-03-22 Thread Yonik Seeley
Ah, there's the extra bit of context: > PS C:\curl> .\curl ' You're using Windows perhaps? If so, it's probably a shell issue getting all of the data to the "curl" command. Something like cygwin or WSL (Windows Subsystem for Linux) may make your life easier. -Yonik On Thu, Mar 22, 2018 at

Re: Error in indexing JSON with space in value

2018-03-22 Thread Zheng Lin Edwin Yeo
Thanks for your reply. This is the curl command that I run, with the "--trace -" output. PS C:\curl> .\curl 'http://localhost:8983/solr/collection1/update/json/docs? split=/|/orgs ' -H 'Content-type:application/j son' -d ' {

Re: Error in indexing JSON with space in value

2018-03-22 Thread Zheng Lin Edwin Yeo
Thanks for your reply. PS C:\curl> .\curl ' http://localhost:8983/edm/emails6/update/json/docs?split=/|/orgs' -H 'Content-type:application/j son' -d ' { "id":"1", "name_s": "Joe Smith", "phone_s": 876876687, "orgs": [ { "name1_s": "Microsoft", "city_s": "Seattle",

Re: Error in indexing JSON with space in value

2018-03-22 Thread Yonik Seeley
It looks like a curl globbing issue from the curl error message you included: "curl: (3) [globbing] bad range specification in column 39" You can try turning off curl globbing with the -g param. That may not be the only issue though, as the command shown shouldn't have triggered curl globbing.

Re: Error in indexing JSON with space in value

2018-03-22 Thread Shawn Heisey
On 3/22/2018 9:48 AM, Zheng Lin Edwin Yeo wrote: > I am trying to index the following JSON, in which there is a space in the > name "Joe Smith". > > .\curl 'http://localhost:8983/solr/collection/update/json/docs?split=/|/orgs > ' > -H 'Content-type:application/json' -d ' > { > "id":"1", >

Re: Error in indexing JSON with space in value

2018-03-22 Thread Chris Hostetter
I can't reproduce the problem you described -- using 7.2.1 and the techproducts example i can index a JSON string w/white space just fine... $ bin/solr -e techproducts $ curl 'http://localhost:8983/solr/techproducts/update/json/docs' -H 'Content-type:application/json' -d ' { "id":"1",

Error in indexing JSON with space in value

2018-03-22 Thread Zheng Lin Edwin Yeo
Hi, I am trying to index the following JSON, in which there is a space in the name "Joe Smith". .\curl 'http://localhost:8983/solr/collection/update/json/docs?split=/|/orgs ' -H 'Content-type:application/json' -d ' { "id":"1", "name_s": "Joe Smith", "phone_s": 876876687, "orgs": [