如何配置 Magento Enterprise 使用 Solr 作为主要搜索引擎?
我尝试寻找文档,但它非常稀疏。我编写了以下指南,希望它可以为某人节省 2-3 个小时的安装、设置和配置时间。
与 MySQL 全文搜索标准设置相比,使用 Solr 带来的性能提升非常惊人。绝对值得花时间在您的 Magento 安装中让它发挥作用。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Magento - Solr 安装和安装配置
sudo add-apt-repository ppa:sun- java
安装和安装配置Tomcat:
sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user
vi /etc/tomcat6/tomcat-users.xml
将以下角色和用户添加到配置中。
重新启动服务器:
/etc/init.d/tomcat6重启
如果一切顺利,请转到http://hostname:8080
安装索尔:
http://apache.rediris.es/ lucene/solr/3.3.0/apache-solr-3.3.0.zip
安装并安装配置
vi /etc/tomcat6/Catalina/localhost/solr.xml
您应该在 Tomcat 管理/管理器页面上看到 Solr 访问权限 (http://hostname:8080 /manager/html)
配置 Magento 使用 Solr:
用 Magento conf 文件替换原始 Solr conf 目录。诀窍就是从 Magento 复制该目录,然后替换 Solr 中的目录。就是这样!
在管理中,转到系统 ->配置->目录->目录搜索
故障排除:
确保所有配置文件都属于 tomcat6:tomcat6 < br>
chown -r tomcat6.tomcat6 ...
Magento - Solr Installation & Configuration
Install & Configure Tomcat:
sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user
vi /etc/tomcat6/tomcat-users.xml
Add the following roles and user to the configuration.
Restart the server:
/etc/init.d/tomcat6 restart
If all goes well, goto http://hostname:8080
Install Solr:
http://apache.rediris.es/lucene/solr/3.3.0/apache-solr-3.3.0.zip
Install & Configure
vi /etc/tomcat6/Catalina/localhost/solr.xml
You should see Solr access on your Tomcat admin/manager page (http://hostname:8080/manager/html)
Configure Magento to use Solr:
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!
In admin, goto System -> Configuration -> Catalog -> Catalog Search
Troubleshooting:
Make sure all configuration files belong to tomcat6:tomcat6
chown -r tomcat6.tomcat6 ...