Support for Solr in eZ Components’ Search
The new release of eZ Components (2008.1) has added a new Search module, and the first implementation included is an interface for sending search requests and new documents to a Solr installation. An introduction can be found over at the eZ Components Search Tutorial. The new release of eZ Components requires at least PHP 5.2.1 (.. and if you’re not already running at least 5.2.5, it’s time to get moving. The world is moving. Fast.).
-
<?php
-
require_once 'tutorial_autoload.php';
-
-
// on localhost with the default port
-
$handler = new ezcSearchSolrHandler;
-
-
// on another host with a different port
-
$handler = new ezcSearchSolrHandler( '10.0.2.184', 9123 );
-
?>
