Skip to content

Provide option for specifying request method #85

@bejohu

Description

@bejohu

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);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions