lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelly, Frank" <frank.ke...@here.com>
Subject Re: Solr Max Query length
Date Sat, 23 Apr 2016 13:55:24 GMT
Yes switching to the POST saved me from having to change Jetty settings

Thanks for the pointer!

-Frank

Frank Kelly
Principal Software Engineer
Predictive Analytics Team (SCBE/HAC/CDA)

HERE 
5 Wayside Rd, Burlington, MA 01803, USA
42° 29' 7" N 71° 11' 32” W

 <http://360.here.com/>   <https://twitter.com/here>
<https://www.facebook.com/here>    <https://linkedin.com/company/heremaps>
   <https://www.instagram.com/here>







On 4/22/16, 11:29 AM, "Reth RM" <reth.iksam@gmail.com> wrote:

>I'm not sure, may be this should work :
>QueryResponse response = solr.query(q, METHOD.POST);
>
>Let's wait for others response.
>
>
>
>
>On Fri, Apr 22, 2016 at 8:51 PM, Kelly, Frank <frank.kelly@here.com>
>wrote:
>
>> I am using the SolrJ library - does it have a way to specify one variant
>> (POST) over the other (GET)?
>>
>> -Frank
>>
>>
>>
>>
>> On 4/22/16, 11:13 AM, "Reth RM" <reth.iksam@gmail.com> wrote:
>>
>> >Are you using get instead of post?
>> >
>> >https://dzone.com/articles/solr-select-query-get-vs-post
>> >
>> >
>> >
>> >On Fri, Apr 22, 2016 at 8:12 PM, Kelly, Frank <frank.kelly@here.com>
>> >wrote:
>> >
>> >> I used SolrJ and wrote a test to confirm that the max query length
>> >> supported by Solr (by default) was 8192 in Solr 5.3.1
>> >> Based on the default Jetty settings
>> >>
>> >> jetty.xml:    <Set name="requestHeaderSize"><Property
>> >> name="solr.jetty.request.header.size" default="8192" /></Set>
>> >>
>> >>
>> >> The test would not work however until I had used a max size of 4096
>>(so
>> >> the query passes at 4095 and returns a RemoteSolrException at 4097).
>> >>
>> >>
>> >> Is there another setting somewhere limiting the max query length?
>> >>
>> >>
>> >> -Frank
>> >>
>> >> *Frank Kelly*
>> >>
>> >> Principal Software Engineer
>> >>
>> >> Predictive Analytics Team (SCBE/HAC/CDA)
>> >>
>> >>
>> >> *HERE *
>> >>
>> >> 5 Wayside Rd, Burlington, MA 01803, USA
>> >>
>> >> *42° 29' 7" N 71° 11' 32² W*
>> >>
>> >>
>> >> <http://360.here.com/>   <https://twitter.com/here>
>> >> <https://www.facebook.com/here>
>> >><https://linkedin.com/company/heremaps>
>> >>   <https://www.instagram.com/here>
>> >>
>> >>
>>
>>

Mime
View raw message