程序问答   发布时间:2022-06-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了How to configure Magento Enterpise to use Solr as the main search engine?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决How to configure Magento Enterpise to use Solr as the main search ENGIne??

开发过程中遇到How to configure Magento Enterpise to use Solr as the main search ENGIne?的问题如何解决?下面主要结合日常开发的经验,给出你关于How to configure Magento Enterpise to use Solr as the main search ENGIne?的解决方法建议,希望对你解决How to configure Magento Enterpise to use Solr as the main search ENGIne?有所启发或帮助;

  1. @H_472_6@make sure the Java JDK is installed:

    1. sudo add-apt-repository ppa:sun-java-community-team/sun-java6
    2. sudo apt-get update
    3. sudo apt-get install sun-java6-jre sun-java6-jdk
  2. Install & Configure tomcat:

    • Installation: sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user

    • Configuration: vi /etc/tomcat6/tomcat-users.xml

    • Add the following roles and user to the configuration.

          <role rolename="admin"/>
      

    • Restart the server: /etc/init.d/tomcat6 restart

If all goes well, goto http://hostname:8080

  1. Install Solr:

    • check for the latest distro here.. http://apache.rediris.es/lucene/solr/
    • Download release http://apache.rediris.es/lucene/solr/3.3.0/apache-solr-3.3.0.zip
    • Install & Configure

    • unzip apache-solr-3.3.0.zip

    • @H_461_5@mkdir /usr/share/tomcat6/webapps
    • cp apache-solr-3.3.0/dist/apache-solr-3.3.0.war /usr/share/tomcat6/webapps/solr.war
    • cp -r apache-solr-3.3.0/example/solr /usr/share/tomcat6/solr
    • vi /etc/tomcat6/Catalina/localhost/solr.xml

                  <Context docBase="/usr/share/tomcat6/webapps/solr.war" deBUG="0" 
      privileged="true" allowlinking="true" crossContext="true">
      <Environment name="solr/home" type="java.lang.String" 
      value="/usr/share/tomcat6/solr" overrIDe="true" />
      </Context>
      
    • chown -r tomcat6.tomcat6 /var/lib/tomcat6

    • /etc/init.d/tomcat6 restart
    • You should see Solr access on your tomcat admin/manager page (http://hostname:8080/manager/html)
  2. Configure Magento to use Solr:

    1. replace the original Solr conf directory with the Magento conf files. The trick is just to copy the directory from Magento, and replace the one in Solr. That’s it!

    2. In Magento, the folder is located in: [magento-instance-root]/lib/Apache/Solr/conf.

    3. In Solr, the folder is located in [Solr-instance-root]/example/solr/conf.

    4. Configure Solr in Magento: In admin, goto System -> Configuration -> Catalog -> Catalog Search

How to configure Magento Enterpise to use Solr as the main search engine?

@H_472_6@make sure all configuration files belong to tomcat6:tomcat6 chown -r tomcat6.tomcat6 …

  • /var/lib/tomcat6/conf/Catalina/localhost
  • /usr/share/tomcat6/solr/conf

解决方法

I tried looking for documentation but it is quite sparse. I wrote the
following guide hoping that it might save someone 2-3 hours dealing with
installations,setup and configuration.
The perfoRMANce gains from using Solr are quite spectacular compared to the
MySQL fulltext search standard setup. it is definitely worth the time to get
this working in your Magento installation.

大佬总结

以上是大佬教程为你收集整理的How to configure Magento Enterpise to use Solr as the main search engine?全部内容,希望文章能够帮你解决How to configure Magento Enterpise to use Solr as the main search engine?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。