国外设计欣赏网站 - DOOOOR.com

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

[Drupal教程] Drupal教程:ubuntu下安装solr支持drupal搜索

[复制链接]
发表于 2-18-2012 06:50 | 显示全部楼层 |阅读模式
apt-get install solr-tomcat
安装drupal的solr模块 Apache Solr Search Integration
剪切/etc/solr/conf中的schema.xml和solrconfig.xml,为schema.xml.bak和solrconfig.xml.bak
把drupal solr模块中的schema.xml和solrconfig.xml文件连接到/etc/solr/conf中
cd /etc/solr/confmv schema.xml schema.xml.bakmv solrconfig.xml solrconfig.xml.bakln -s [you site modules]/apachesolr/schema.xml schema.xmlln -s [you site modules]/apachesolr/solrconfig.xml solrconfig.xml
编辑solrconfig.xml文件,找到类似于
   <!-- Used to specify an alternate directory to hold all index data
8 _$ `% d% L( S  X! p, X# }$ q2 R        other than the default ./data under the Solr home.
; h1 ~. n0 o( @6 N( ~$ Z        If replication is in use, this should match the replication configura    tion. -->
/ ~: l2 i" r  [. t7 J/ `: v <!--/ c5 s5 Q- C3 \; B% ]8 v5 e
   <dataDir>${solr.data.dir:./solr/data}</dataDir>' O6 A- g3 X* I) ]0 p$ Y
-->
下增加
<dataDir>/var/lib/solr/data</dataDir>
重启 /etc/init.d/tomcat6 restart
访问地址为     localhost:8080/solr
还需要改 搜索模块为 Apache Solr search  就可以用了
6 l* R' T7 d8 e: y0 b
本文选自:Boofee,谢谢!!!

1 c& l5 r3 ~; F6 [( P) _
2 t7 a/ a; D" `- p/ L6 E
. A1 \7 t7 p7 T/ Q( n) A9 w: H0 M

|2011-2026-版权声明|平台(网站)公约|DOOOOR 设计网 ( 吉ICP备2022003869号 )

GMT+8, 5-10-2025 10:55 , Processed in 0.482771 second(s), 79 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表