Solr Plugin: search fails

Greetings,

After installing and configuring Solr plugin I get the error below when I hit search.

Please help,
Pavel


Omeka has encountered an error

Zend_Controller_Exception
Cannot send headers; headers already sent in /home/omeka/omeka-1.5/plugins/SolrSearch/controllers/ResultsController.php, line 27#0 /home/omeka/omeka-1.5/application/libraries/Zend/Controller/Response/Abstract.php(115): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/omeka/omeka-1.5/application/libraries/Omeka/Controller/Action.php(78): Zend_Controller_Response_Abstract->setHeader('Content-Type', 'text/html; char...', true)
#2 /home/omeka/omeka-1.5/application/libraries/Zend/Controller/Dispatcher/Standard.php(268): Omeka_Controller_Action->__construct(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http), Array)
#3 /home/omeka/omeka-1.5/application/libraries/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#4 /home/omeka/omeka-1.5/application/libraries/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#5 /home/omeka/omeka-1.5/application/libraries/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#6 /home/omeka/omeka-1.5/application/libraries/Omeka/Core.php(165): Zend_Application->run()
#7 /home/omeka/omeka-1.5/index.php(28): Omeka_Core->run()
#8 {main}

Hi Pavel,

Do you have this running with an instance of Tomcat or Jetty? You need one of those containers for the Solr search plugin to work (see Read Me file for more info and here: https://github.com/scholarslab/SolrSearch).

Hello Sheila,

Yes, of course - the Solr is running within an instance of Tomcat. The Solr instance is working nicely: items are indexed, and queries via Solr query interface return results.

It is only the search which fails with the reported message.

Thanks,
Pavel

Hi Pavel,

What version of the plugin are you running? The most recent version which runs on the current Omeka will be released soon. If you'd like the most recent version that runs on Omeka 1.5.x, you will need to clone the git repo and switch to the develop branch.

Wayne

Hello Wayne,

I am running on the latest version of Omeka, 1.5. Do you have any rough estimation as for when the plugin is going to be released?

Thanks,
Pavel

Hello Wayne,

It would be most kind of you to release a temporary snapshot of the latest version for us to go on testing the plugin.

Thanks,
Pavel

Hi Pavel,

I packaged up a pre-release candidate package which should work much better on 1.5.x Omeka. You can download the zip file from

https://github.com/scholarslab/SolrSearch/downloads

Let us know if you run in to any problems...

Cheers,
Wayne

Hi Wayne,

Many thanks. I installed the plugin. All the configurations and reindex went fine, but I get the following error when trying to substitute Omeka search box with your one:


Fatal error: Call to undefined function solr_search_form() in ../omeka/omeka-1.5/themes/default/common/header.php on line 39

Thanks,
Pavel

You shouldn't need to do anything to update the search box in the theme. Basically we redirect the default search behavior to the SolrSearch form if it's installed.

Oh, great. Thanks!

Hello Wayne,

It seems that after full index the number of documents indexed in Solr (judging from its statistics webpage) is significantly smaller than the number of public items in Omeka.

Is there any way to verify that all the items were indexed? Does indexer has a log to check for errors?

Thanks,
Pavel

Hi Pavel,

Since Solr servers are often on another physical machine (Java servlets take far more resources than PHP), there's no way to introspect exceptions on the Solr side. The first step would be to click on the Clearn & Reindex button (admin/solr-search/reindex/). This will drop all the items in the index, then step through all items, exhibits, and pages to recreate the index.

The only other issues we've seen is when the solr-home is not configured properly resulting in a bad index (or inability to index).

Hello Wayne,

1. Our solr instance runs on the same machine. After a complete reindex the number of solr items is still smaller than the actual number in Omeka. I still wonder whether we can check the indexer log for any errors.

2. The faceted search displayed next to the Search box does not seem to be working - it shows that facets are non-empty, yet clicking on the facet name brings no results. Any ideas?

Thanks!
Pavel

Is there a public URL? My guess right now is that Tomcat doesn't have write permission to the data directory...

Yes, there is:
http://www.wikiproverbs.com/solr-search/results/?solrfacet=

Please note the items are indexed, but pressing on a facet value brings nothing. Is the permission problem still an option?

Hi Pavel,

This may actually be a little more complex...how many items are in your collection marked public?

In the mean time, we've opened a bug (https://github.com/scholarslab/SolrSearch/issues/71) to investigate the issue.

Wayne

Hi Wayne,

Thanks for taking care of that. All the items (1613) are marked public.
Please let me know if I can carry out any checks on my own to help you.

Thanks,
Pavel

Hi Pavel,

I just created a feature branch that has stemming support for Hebrew (including stopwords) https://github.com/scholarslab/SolrSearch/commit/baaecab26992215df0310a4fd5a72b8e9d780722. This _may_ fix at least one of the issues you're experiencing (with a change of the fulltext field to be text_iw), but we don't have access to data to test this out with. Would you be willing to share a data dump? If so, let me know and I'll get in touch through another method with directions and a method to deliver it...

Wayne

Sure, lets do it.