oceanduan / solr-php-client

Automatically exported from code.google.com/p/solr-php-client
Other
0 stars 0 forks source link

Getting a 400 Bad Request error because to many or clauses (not to long !) #72

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Try to execute a query with many...many..."OR" clauses.
See attached file which is the query
2.Getting a "400 : Bad request Error"

What is the expected output? What do you see instead?
exception 'Apache_Solr_HttpTransportException' with message ''400' Status: Bad 
Request'

What version of the product are you using? On what operating system?
Using :
Php 5.2 / Apache Solr 1.4.1 with Jetty included.
solr-php-client R59

Thanks for your help

I've already tried a lots of advise :
- use POST
- change jetty settings : headerBufferSize
...

Please provide any additional information below.

Original issue reported on code.google.com by mathieu....@gmail.com on 20 Nov 2011 at 3:46

Attachments:

GoogleCodeExporter commented 8 years ago
Does this work if you limit the number of OR clauses? 
For example if you search for "110 Bourgogne" OR "110 BOURGOGNE" does it work?

Original comment by p...@headfirst.co.nz on 10 Jun 2013 at 3:25

GoogleCodeExporter commented 8 years ago
Yes, of course it works , the problem clearly appears after a certain limit is 
reached. 

Original comment by mathieu....@gmail.com on 10 Jun 2013 at 6:05

GoogleCodeExporter commented 8 years ago
what is your maxBooleanClauses set to? and it is more than the number of 
clauses in your query?

http://wiki.apache.org/solr/SolrConfigXml#The_Query_Section

Original comment by donovan....@gmail.com on 10 Jun 2013 at 1:57