Re: Getting error "Bad Message 414 reason: URI Too Long"
On 1/14/2021 2:31 AM, Abhay Kumar wrote: I am trying to post below query to Solr but getting error as “Bad Message 414reason: URI Too Long”. I am sending query using SolrNet library. Please suggest how to resolve this issue. *Query :* http://localhost:8983/solr/documents/select?q=%22Geisteswissenschaften If your query is a POST request rather than a GET, then you won't get that error. And if the request is identical to the REALLY long URL that you included (which seemed to be incomplete), then it's definitely not a POST. If it were, everything after the ? would be in the request body, not on the URL itself. There is a note on the SolrNET FAQ about this. https://github.com/SolrNet/SolrNet/blob/master/Documentation/FAQ.md#im-getting-a-uri-too-long-error If you want more info on that, you'll need to ask SolrNET. It's a completely different project. Thanks, Shawn
Re: Getting error "Bad Message 414 reason: URI Too Long"
AFAIK, that could be a limit in Jetty and be raised in jetty.xml. You might check the Jetty docs and look for something like BufferSize. At least for Solr 6.6.x Regards Bernd Am 14.01.21 um 13:19 schrieb Abhay Kumar: Thank you Nicolas. Yes, we are making Post request to Solr using SolrNet library. The current request length is approx. 32K characters, I have tested with 10K characters length request and it works fine. Any suggestion to increase request length size in Solr configuration. Thanks. Abhay -Original Message- From: Nicolas Franck Sent: 14 January 2021 15:12 To: solr-user@lucene.apache.org Subject: Re: Getting error "Bad Message 414 reason: URI Too Long" Euh, sorry: I did not read your message well enough. You did actually use a post request, with the parameters in the body (your example suggests otherwise) On 14 Jan 2021, at 10:37, Nicolas Franck wrote: I believe you can also access this path in a HTTP POST request. That way you do no hit the URI size limit cf. https://stackoverflow.com/questions/2997014/can-you-use-post-to-run-a-query-in-solr-select I think some solr libraries already use this approach (e.g. WebService::Solr in perl) On 14 Jan 2021, at 10:31, Abhay Kumar mailto:abhay.ku...@anjusoftware.com>> wrote: Hello, I am trying to post below query to Solr but getting error as “Bad Message 414reason: URI Too Long”. I am sending query using SolrNet library. Please suggest how to resolve this issue. ...
RE: Getting error "Bad Message 414 reason: URI Too Long"
Thank you Nicolas. Yes, we are making Post request to Solr using SolrNet library. The current request length is approx. 32K characters, I have tested with 10K characters length request and it works fine. Any suggestion to increase request length size in Solr configuration. Thanks. Abhay -Original Message- From: Nicolas Franck Sent: 14 January 2021 15:12 To: solr-user@lucene.apache.org Subject: Re: Getting error "Bad Message 414 reason: URI Too Long" Euh, sorry: I did not read your message well enough. You did actually use a post request, with the parameters in the body (your example suggests otherwise) > On 14 Jan 2021, at 10:37, Nicolas Franck wrote: > > I believe you can also access this path in a HTTP POST request. > That way you do no hit the URI size limit > > cf. > https://stackoverflow.com/questions/2997014/can-you-use-post-to-run-a-query-in-solr-select > > I think some solr libraries already use this approach (e.g. WebService::Solr > in perl) > > On 14 Jan 2021, at 10:31, Abhay Kumar > mailto:abhay.ku...@anjusoftware.com>> wrote: > > Hello, > > I am trying to post below query to Solr but getting error as “Bad Message > 414reason: URI Too Long”. > > I am sending query using SolrNet library. Please suggest how to resolve this > issue. > > Query : > http://localhost:8983/solr/documents/select?q=%22Geisteswissenschaften%22%20OR%20%22Humanities%22%20OR%20%22Art%22%20OR%20%22Arts%22%20OR%20%22Caricatures%22%20OR%20%22Caricature%22%20OR%20%22Cartoon%22%20OR%20%22Engraving%20and%20Engravings%22%20OR%20%22Engravings%20and%20Engraving%22%20OR%20%22Engraving%22%20OR%20%22Engravings%22%20OR%20%22Human%20Body%22%20OR%20%22Human%20Bodies%22%20OR%20%22Human%20Figure%22%20OR%20%22Human%20Figures%22%20OR%20%22menschlicher%20K%C3%B6rper%22%20OR%20%22Menschliche%20Gestalt%22%20OR%20%22Body%20Parts%22%20OR%20%22K%C3%B6rperteile%22%20OR%20%22Body%20Parts%20and%20Fluids%22%20OR%20%22K%C3%B6rperteile%20und%20-fl%C3%BCssigkeiten%22%20OR%20%22Medical%20Illustration%22%20OR%20%22Medical%20Illustrations%22%20OR%20%22medizinische%20Illustration%22%20OR%20%22Anatomy%2C%20Artistic%22%20OR%20%22Artistic%20Anatomy%22%20OR%20%22Artistic%20Anatomies%22%20OR%20%22Medicine%20in%20Art%22%20OR%20%22Medicine%20in%20Arts%22%20OR%20%22Numismatics%22%20OR%20%22M%C3%BCnzkunde%22%20OR%20%22Coins%22%20OR%20%22Coin%22%20OR%20%22M%C3%BCnzen%22%20OR%20%22Medals%22%20OR%20%22Medal%22%20OR%20%22Denkm%C3%BCnzen%22%20OR%20%22Gedenkm%C3%BCnzen%22%20OR%20%22Medaillen%22%20OR%20%22Paintings%22%20OR%20%22Painting%22%20OR%20%22Philately%22%20OR%20%22Philatelies%22%20OR%20%22Postage%20Stamps%22%20OR%20%22Postage%20Stamp%22%20OR%20%22Briefmarken%22%20OR%20%22Portraits%22%20OR%20%22Portrait%22%20OR%20%22Sculpture%22%20OR%20%22Sculptures%22%20OR%20%22Awards%20and%20Prizes%22%20OR%20%22Prizes%20and%20Awards%22%20OR%20%22Awards%22%20OR%20%22Award%22%20OR%20%22Prizes%22%20OR%20%22Prize%22%20OR%20%22Nobel%20Prize%22%20OR%20%22Ethics%22%20OR%20%22Egoism%22%20OR%20%22Ethical%20Issues%22%20OR%20%22Ethical%20Issue%22%20OR%20%22Metaethics%22%20OR%20%22Metaethik%22%20OR%20%22Moral%20Policy%22%20OR%20%22Moral%20Policies%22%20OR%20%22Moralischer%20Grundsatz%22%20OR%20%22Natural%20Law%22%20OR%20%22Natural%20Laws%22%20OR%20%22Naturrecht%22%20OR%20%22Situational%20Ethics%22%20OR%20%22Bioethical%20Issues%22%20OR%20%22Bioethical%20Issue%22%20OR%20%22Bioethics%22%20OR%20%22Biomedical%20Ethics%22%20OR%20%22Health%20Care%20Ethics%22%20OR%20%22Ethics%2C%20Clinical%22%20OR%20%22Clinical%20Ethics%22%20OR%20%22klinische%20Ethik%22%20OR%20%22Complicity%22%20OR%20%22Mitt%C3%A4terschaft%22%20OR%20%22Moral%20Complicity%22%20OR%20%22Moralische%20Komplizenschaft%22%20OR%20%22Moralische%20Mitt%C3%A4terschaft%22%20OR%20%22Conflict%20of%20Interest%22%20OR%20%22Interest%20Conflict%22%20OR%20%22Interest%20Conflicts%22%20OR%20%22Ethical%20Analysis%22%20OR%20%22Ethical%20Analyses%22%20OR%20%22Casuistry%22%20OR%20%22Retrospective%20Moral%20Judgment%22%20OR%20%22Retrospective%20Moral%20Judgments%22%20OR%20%22retrospektive%20Moralische%20Beurteilung%22%20OR%20%22Wedge%20Argument%22%20OR%20%22Wedge%20Arguments%22%20OR%20%22Slippery%20Slope%20Argument%22%20OR%20%22Slippery%20Slope%20Arguments%22%20OR%20%22Argument%20der%20schiefen%20Ebene%22%20OR%20%22Ethical%20Relativism%22%20OR%20%22Ethical%20Review%22%20OR%20%22Ethikgutachten%22%20OR%20%22Ethics%20Consultation%22%20OR%20%22Ethics%20Consultations%22%20OR%20%22Ethical%20Theory%22%20OR%20%22Ethical%20Theories%22%20OR%20%22Normative%20Ethics%22%20OR%20%22Normative%20Ethic%22%20OR%20%22Consequentialism%22%20OR%20%22Deontological%20Ethics%22%20OR%20%22Deontological%20Ethic%22%20OR%20%22Deontologie%22%20OR%20%22Ethik%20der%20Pflichtenlehre%22%20OR%20%22Teleological%20Ethics%22%20OR%20%22Teleological%20Ethic%22%20OR%20%22Teleologische%20Ethik%22%20OR%20%22Utilitarianism%22%20OR%20%22Utilitarianisms%22%20OR%20%22Utilitarismus%22%20OR%20
Re: Getting error "Bad Message 414 reason: URI Too Long"
Euh, sorry: I did not read your message well enough. You did actually use a post request, with the parameters in the body (your example suggests otherwise) > On 14 Jan 2021, at 10:37, Nicolas Franck wrote: > > I believe you can also access this path in a HTTP POST request. > That way you do no hit the URI size limit > > cf. > https://stackoverflow.com/questions/2997014/can-you-use-post-to-run-a-query-in-solr-select > > I think some solr libraries already use this approach (e.g. WebService::Solr > in perl) > > On 14 Jan 2021, at 10:31, Abhay Kumar > mailto:abhay.ku...@anjusoftware.com>> wrote: > > Hello, > > I am trying to post below query to Solr but getting error as “Bad Message > 414reason: URI Too Long”. > > I am sending query using SolrNet library. Please suggest how to resolve this > issue. > > Query : >
Re: Getting error "Bad Message 414 reason: URI Too Long"
I believe you can also access this path in a HTTP POST request. That way you do no hit the URI size limit cf. https://stackoverflow.com/questions/2997014/can-you-use-post-to-run-a-query-in-solr-select I think some solr libraries already use this approach (e.g. WebService::Solr in perl) On 14 Jan 2021, at 10:31, Abhay Kumar mailto:abhay.ku...@anjusoftware.com>> wrote: Hello, I am trying to post below query to Solr but getting error as “Bad Message 414reason: URI Too Long”. I am sending query using SolrNet library. Please suggest how to resolve this issue. Query :
Getting error "Bad Message 414 reason: URI Too Long"
Hello, I am trying to post below query to Solr but getting error as "Bad Message 414reason: URI Too Long". I am sending query using SolrNet library. Please suggest how to resolve this issue. Query :