On Mon, Jul 20, 2009 at 1:37 PM, dipanjan_pramanick <
dipanjan_praman...@infosys.com> wrote:

> Hi,
> We have scenario where we need to send more than 1024 ids in the Solr url
> as "OR" condition.
> I have changed the value of maxBooleanClauses in solrconfig.xml, to 2048,
> but it is failing after handling 1024 "OR" conditions.
> Solr is throwing "SEVERE: org.apache.solr.common.SolrException: Bad
> Request" whenever I am sending more than 1024 OR conditions. Is there any
> way I can change this value on Solr configuration.


The maxBooleanClauses is there as a safe guard against extremely slow
queries. If you can tell us about the exact problem you are solving, we may
be able to suggest an alternative approach? Creating such huge boolean
clauses may be a bad design choice.

As for the exception you are seeing, it seems to me that you may be
exceeding the size of a GET request. Using an HTTP POST request may work.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to