Open bejohu opened 5 years ago
Hi
let me try to clarify : what you mean is that you would like to have a GET Request with a JSON BODY as described here : https://lucene.apache.org/solr/guide/8_1/json-request-api.html
Is this correct ? I am not sure { method: 'POST' } is appropriate as this is still a GET. { parameters: 'URL' } or { parameters: 'JSON' }... ??
@bejohu @godong9 : opinion?
When calling the client's
search
method aGET
request is made. However, under certain circumstancesPOST
request 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 aPOT
request.The modified interface could look like this: