国外设计欣赏网站 - 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+ ~7 ?# @3 G3 D
        other than the default ./data under the Solr home.) y+ t/ ^! j& z2 x2 l* X
        If replication is in use, this should match the replication configura    tion. -->
3 B7 G6 L) }2 ~( Z; C( w$ k <!--
5 y0 x+ h8 \- _& ~" W" K) I   <dataDir>${solr.data.dir:./solr/data}</dataDir>" j5 x3 Y4 o% g
-->
下增加
<dataDir>/var/lib/solr/data</dataDir>
重启 /etc/init.d/tomcat6 restart
访问地址为     localhost:8080/solr
还需要改 搜索模块为 Apache Solr search  就可以用了
  W) I- N  G8 C% v5 H$ W' h
本文选自:Boofee,谢谢!!!

1 G: S$ p) g  f+ P# u+ b* Y' r' T
  ^2 ^4 c: Q$ |0 L, w; z9 z* l. i6 l; N+ \+ z' p. E0 V6 V, f# K1 O( G" p6 `

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

GMT+8, 7-14-2025 07:36 , Processed in 2.162354 second(s), 79 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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