Step1:Edityoursolrconfig.xmltoaddtherequesthandler<requestHandlername="/dataimport"><lstname="defaults"><strname="config">data-config.xml</str></lst></requestHandler>Step2:Createadata-config.xmlfileasfollowsandsaveittotheconfdir<dataConfig><dataSourcetype="JdbcDataSource"driver="com.mysql.jdbc.Driver"url="jdbc:mysql://localhost/dbnam...
继续阅读 >
标签目录:Solr
2014
11-11
11-11
Solr with Apache Tomcat
InstallingTomcat6ApacheTomcatisawebapplicationserverforJavaservlets.TheseareinstructionsformanuallyinstallingTomcat6onLinux,recommendedbecausedistributionTomcatsareeitheroldorquirky.Createthesolruser.Assolr,extracttheTomcat6.0downloadinto/opt/tomcat6,hereafterreferredtoasthe$CATALINA_HOMEdirectory.Edit$CATALINA_HOME/conf/tomcat-users.xmltoenab...
继续阅读 >
2014
11-07
11-07
PHP扩展之针对搜索引擎的扩展(一)——Apache Solr
简介及安装Solr扩展允许你在PHP5中有效的和ApacheSolr服务器通话。Solr扩展快速,轻量级,有允许PHP开发者和Solr服务器实例有效通话的特性丰富的库。兼容APacheSolr1.3和1.4。有内置工具添加文档和更新到solr服务器,还有工具允许你在搜索文档时构建高级查询。需要PHP5.2.11及以上版本。需要安装libxml及curl扩展。使用示例Example#1启动文件的内容<?php/* Solr服务器的主机域名*/define('SOLR_SERVER_HOSTNAME',...
继续阅读 >