Skip to content
Snippets Groups Projects
Commit b41c97a8 authored by David Maus's avatar David Maus
Browse files

Create and attach SOLR v4 error listener

* VuFind/Search/Factory/AbstractSolrBackendFactory.php
  (createListeners): Create and attach SOLR v4 error listener.
parent 6aba3fe0
No related merge requests found
...@@ -31,6 +31,7 @@ namespace VuFind\Search\Factory; ...@@ -31,6 +31,7 @@ namespace VuFind\Search\Factory;
use VuFind\Search\Solr\InjectHighlightingListener; use VuFind\Search\Solr\InjectHighlightingListener;
use VuFind\Search\Solr\MultiIndexListener; use VuFind\Search\Solr\MultiIndexListener;
use VuFind\Search\Solr\V4\ErrorListener;
use VuFindSearch\Backend\BackendInterface; use VuFindSearch\Backend\BackendInterface;
use VuFindSearch\Backend\Solr\QueryBuilder; use VuFindSearch\Backend\Solr\QueryBuilder;
...@@ -182,6 +183,10 @@ abstract class AbstractSolrBackendFactory implements FactoryInterface ...@@ -182,6 +183,10 @@ abstract class AbstractSolrBackendFactory implements FactoryInterface
); );
$mindexListener->attach($events); $mindexListener->attach($events);
} }
// Error listener, use SOLR 4.x by default
$errorListener = new ErrorListener($backend);
$errorListener->attach($events);
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment