You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Harsch, Timothy J. (ARC-SC)[PEROT SYSTEMS]" <ti...@nasa.gov> on 2009/04/29 19:12:36 UTC

limit on query size?

Is there a limit on the size ( in bytes ) of a query you send to Solr?

Either through HTTP URL request or through SolrJ?

What is the behavior if a limit is reached?

Re: limit on query size?

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Wed, Apr 29, 2009 at 10:42 PM, Harsch, Timothy J. (ARC-SC)[PEROT SYSTEMS]
<ti...@nasa.gov> wrote:

> Is there a limit on the size ( in bytes ) of a query you send to Solr?
>
> Either through HTTP URL request or through SolrJ?
>


The limit is whatever you have configured (or the default) in your servlet
container for GET (default is 2KB I think) and POST requests. These can be
changed in your container's configuration. In Solrj, GET is the default
method for querying and POST is the default method for indexing. If you are
exceeding the GET limit, you can use POST for queries by passing your own
HttpClient.

The only other limit is if you have enabled remote streaming, in which case
it can be configured in solrconfig.xml in the <requestParsers> section.


>
> What is the behavior if a limit is reached?
>

The limits are enforced by the servlet container so the behavior is specific
to them.

-- 
Regards,
Shalin Shekhar Mangar.