According to Solr Json Request API documentation, every query string parameter has a corresponding POST request parameter in JSON API, e.g. q -> query, start -> offset, etc.
However, there is no equivalent parameter for cursorMark query string parameter.
The best solution I am aware of is changing request type from application/json to application/x-www-form-urlencoded which allows using query string parameters in POST request's body. The reason why I was using application/json was to get json response, but it turns that it is controlled by wt=json parameter.
- Changed query uri to: http://localhost:8983/solr/myCore/select?wt=json
- Changed POST request parameters back to query string counterparts, i.e. q, start, rows, etc.
- UrlEncoded the query string.
- Put the encoded query string in POST body.
- Changed request content type to application/x-www-form-urlencoded.