Whilst going through the getting started guide for the Watson Retrieve and Rank service (http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/retrieve-rank/get_start.shtml#create-collection), I spotted an error.
The error is in "Stage 3: Create a collection and add documents" and refers to the CURL for "Create a collection that is named example-collection and associate it with the example-config configuration: "
It has a POST, which if you run gives an error. It should be a GET, which works.
Answer by lindner.scott (1111) | Nov 21, 2015 at 03:42 PM
Hi - the post command should also work. What error were you seeing?
$ curl -X POST -u "{username}":"{password}" "https://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/{solr_cluster_id}/solr/admin/collections" -d "action=CREATE&name=example-collection&collection.configName=example-config"
In the above command the post data has all of the params and Solr supports both GET (params directly in the URL) as well as POST.
Thanks,
-Scott
It was a strange error. I was using Postman and POST would throw an error saying that GET was not supported, but once I changed the request to GET, it worked. Could be related to how Postman crafted the request.
You are right. My error was that I was not using x-www-form-urlencoded as the data body. Once done then POST works through Postman
Can Watson R&R service specify whether specific user can access to restricted answer? 1 Answer
How should I interpret the performance of the ranker in Watson Retrieve&Rank? 1 Answer
Watson KeyError: 'RSInput' and groundtruth errors 3 Answers
Commercial use of Watson generally available services 1 Answer
Rank & Retrive Data standards. 2 Answers