AndBicScadMedia / solr-php-client

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

Fail Solr Query via GET when the Query is to long #52

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When the Query String is to long the GET-Method is good because you can only 
transfer 2kb. If the Query-String has more then 2kb the file_get in the _rawGet 
method got an exception. 

I expect if the Query String is to long the data will post to solr.

The Solr Servlet process the Post-Data like Get-Date (getParameterMap is call 
in the servlet). 

http://download.oracle.com/javaee/1.3/api/javax/servlet/ServletRequest.html

Original issue reported on code.google.com by bernd.zu...@gmail.com on 13 Oct 2010 at 6:17

GoogleCodeExporter commented 8 years ago
The search method can be told to use a POST request.

This is a duplicate of issue 8, and the feature was available as of r7

example usage:

$solr->search("solr", 0, 10, $params, Apache_Solr_Search::METHOD_POST);

If there is a different approach you'd like to see, please submit a new feature 
request and / or patch

Original comment by donovan....@gmail.com on 13 Oct 2010 at 6:37