When calling the client's search method a GET request is made. However, under certain circumstances POST request is required, e.g. when the request URI gets to long, solr will return error 414: URI too long. This can be avoided by sending the parameters in the body of a POT request.
The modified interface could look like this:
solrClient.search(strQuery, { method: 'POST' }, function (err, result) {
if (err) {
console.log(err);
return;
}
console.log('Response:', result.response);
});
When calling the client's
searchmethod aGETrequest is made. However, under certain circumstancesPOSTrequest is required, e.g. when the request URI gets to long, solr will return error414: URI too long. This can be avoided by sending the parameters in the body of aPOTrequest.The modified interface could look like this: