Installing solr search with Magento Enterprise Edition

Solr

Recently I struggled a lot to integrate solr search with Magento as it is one of the most popular search engine nowadays.

Most of the informations are covered here: How to Use the Solr Search Engine With Magento Enterprise Edition .

What is the process you have to follow to make solr work with Magento?

  • Grab the solr version compatible with your Magento enterprise edition.
  • Install solr in your system.
  • Copy all the files from [magento-installation-root]/lib/Apache/Solr/Conf to [solr-installation-folder]/example/solr/conf
  • Start start.jar file available in [solr-installation-folder]/example using command java -jar start.jar .
  • Test solr connection in Magento admin panel. Successful??

Solr Connection test

  • Save the configurations and server settings as it is. By default solr runs at port 8983.
  • Now everything is ready. But most of the times you wont be able to see products in your catalog. Why?? Because Solr needs re-indexing of the documents.

PmVHV

How to re-index all the documents ?

  1. First go to shell(magento root) folder using command prompt  [magento-installation-root]/shell
  2. Check the current status of indexing using php indexer.php –status . Here you may see all the index types with current status.
  3. Re-index all the data using php indexer.php –reindexall . You can also re-index individual data’s as php indexer.php –reindex catalog_product_attribute

On completion of the re-indexing you will see

Solr re-indexing

Wooha. Solr re-indexing is successful. Now you should be able to see products in your categories and your solr search should be enabled.

References: Magento re-indexing by Shell scripting , Solr category search is not working in Magento EE

                       

2 thoughts on “Installing solr search with Magento Enterprise Edition

  1. I get thi serror while doing
    rahul@rahul:/opt/lampp/htdocs/tisco_ee/shell$ php indexer.php -reindexall
    PHP Fatal error: Uncaught exception ‘Zend_Db_Adapter_Exception’ with message ‘pdo_mysql extension is not installed’ in /opt/lampp/htdocs/tisco_ee/lib/Varien/Db/Adapter/Pdo/Mysql.php:372
    Stack trace:
    #0 /opt/lampp/htdocs/tisco_ee/lib/Zend/Db/Adapter/Abstract.php(460): Varien_Db_Adapter_Pdo_Mysql->_connect()
    #1 /opt/lampp/htdocs/tisco_ee/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(‘SET NAMES utf8’, Array)
    #2 /opt/lampp/htdocs/tisco_ee/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query(‘SET NAMES utf8’, Array)
    #3 /opt/lampp/htdocs/tisco_ee/app/code/core/Mage/Core/Model/Resource.php(179): Varien_Db_Adapter_Pdo_Mysql->query(‘SET NAMES utf8’)
    #4 /opt/lampp/htdocs/tisco_ee/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection(‘pdo_mysql’, Object(Mage_Core_Model_Config_Element))
    #5 /opt/lampp/htdocs/tisco_ee/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection(‘core_write’)
    #6 /opt/lampp/htdocs in /opt/lampp/htdocs/tisco_ee/lib/Varien/Db/Adapter/Pdo/Mysql.php on line 372

    Like

Leave a comment