Solr is installed without Tomcat and is up at http://localhost:8983/solr (at http://localhost:8983/solr/admin I see the interface) but after few cron runs I see no results at admin/settings/apachesolr/index.
Trying to search at search/apachesolr_search I got a Drupal status error:
The Apache Solr search engine is not available. Please contact your site administrator.
Looking in Drupal logs I saw 2 errors:
- "400" Status: ERRORunknown_field_site - this appear after Adding 200 documents message
- "0" Status: Communication Error
Platform:
- Drupal 5.19
- apachesolr 5.x-1.0-alpha6
- Solr 1.3 (without Tomcat) - up at http://localhost:8983/solr
- At admin/settings/apachesolr settings are correct
- schema.xml & solrconfig.xml were copied to conf
What else?
Thanks.
Comments
Comment #1
claudiu.cristeaOne Addition:
In fact is Solr 1.4 (from nightly devel build at http://people.apache.org/builds/lucene/solr/nightly/solr-2009-08-20.zip) but in admin is showing up
Solr Specification Version: 1.3.0.2009.08.20.08.05.52Looking in admin/logs/status I have an OK message:
Comment #2
claudiu.cristeaTracing the error reveal that I get an "400 Bad request" error when trying to send data to the indexer. Here's the response (
$response = new Apache_Solr_Response()- from Service.php):Comment #3
claudiu.cristeaI fixed the 400 error on indexing -- Solr was started with some bad params and he failed to load the proper schema.xml so he didn't recognize Drupal fields sent along the request... Now the site get indexed on each cron.
Unfortunately, the search
The Apache Solr search engine is not available. Please contact your site administratorstill pops up on Solr Search at search/apachesolr_search along with the watchdog error message"0" Status: Communication ErrorComment #4
claudiu.cristeaFinally found the issue. Our site uses a lot of CCK fields. Due to this the GET request size was bigger than 7,900 characters (!!!) because of " faced.field=XXXXXXX" pairs created for each field... Solr/Jetty settings were adjusted and it works now.
However, I saw in 6.x that facets can be limited through user interface... That would be a very useful feature in 5.x too... Is there an ongoing process to backport features from 6.x?
Comment #5
robertdouglass commentedThanks for reporting the resolution. I've run into the GET request size limit as well.
I responded on your other issue about the state of DRUPAL-5. The short answer is, no effort is being made to backport. You are encouraged to lead such an effort, however.
(changing status to fixed)
Comment #7
q0rban commentedI've run into this as well, except with Tomcat. I upped the maxHttpHeaderSize attribute in the HTTP Connector element in my server.xml file, but to no avail, I still get error on the search page saying
The status page reports:
Comment #8
q0rban commentedUsing drush solr search test resulted in this error:
Comment #9
q0rban commentedOk, I was able to get rid of the errors by disabling the apachesolr_nodeaccess module.
Comment #11
janusman commentedDuplicate #761990: 400 Bad Status if URL length limit exceeded
Comment #12
janusman commentedSee http://drupal.org/node/443980 for a possible fix.