`
yintaoxue
  • 浏览: 22482 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论

基于Solr 3.5搭建搜索服务器

    博客分类:
  • Solr
 
阅读更多

Solr已经发布3.5版本了,同时它是基于Lucene 3.5的。我们在基于Solr进行二次开发之前,首先要搭建起一个搜索服务器,在熟悉Solr的基本功能的基础上,可以根据实际应用的需要进行个性化定制开发。因为Solr提供了一种插件机制,我们可以根据自己的需要进行定制,然后在Solr的配置文件中(solrconfig.xml)进行配置即可达到预期的要求。在Solr的发行包中给出了一个配置的例子,我们可以直接将其发布到Web容器中,通过浏览器访问来进行测试,具体如何配置,下面根据从易到难的方式,对每种方式进行详细的介绍。

 

准备工作

 

 

  1. 下载Solr 3.5发行包(http://lucene.apache.org/solr,apache-solr-3.5.0-src.tgz和apache-solr-3.5.0.tgz),并解压缩到文件系统中;
  2. 下载Lucene 3.5发行包(http://lucene.apache.org/,lucene-3.5.0-src.tgz和lucene-3.5.0.tgz),并解压缩到文件系统中;
  3. 安装配置Web容器,我使用的apache-tomcat-6.0.32。

 

 

第一种方式:基于WAR包搭建

 

这种方式,我们是直接使用Solr发行包给定的WAR包,一般来说通过它快速了解Solr是很有用的,而对于满足实际需要的开发还远远不够。

按照下面的步骤,进行安装、配置、验证:

第1步:将apache-solr-3.5.0\apache-solr-3.5.0\example下面的multicore拷贝到apache-tomcat-6.0.32\conf下面;

multicore目录下面包含了Solr的基本配置。Solr支持配置多个实例,亦即,可以启动多个实例来服务于前端不同的搜索请求,每个实例对应一个core,而这样多个core的配置是通过multicore\solr.xml进行配置的,然后在multicore下面的每个目录中对应着每个core的详细配置,具体包括schema.xml(配置与Lucene的Field、Analyzer等相关的内容)、solrconfig.xml(这个是Solr实例核心的配置)。

 

另外,如果在solrconfig.xml中没有指定<dataDir>索引目录配置,则默认会生成apache-tomcat-6.0.32\conf\multicore\data\index目录,该目录下面存储索引文件。

第2步:将apache-solr-3.5.0\apache-solr-3.5.0\dist下面的apache-solr-3.5.0.war拷贝到apache-tomcat-6.0.32\webapps目录下面;

这个不用过多解释,就是通过使用一个Web归档文件(WAR)来部署一个Web应用,我们的应用就是Solr搜索应用程序。

第3步:配置WAR程序的Context:在apache-tomcat-6.0.32\conf\Catalina\localhost下面(如果目录不存在,则手动创建),创建文件apache-solr-3.5.0.xml;

Context配置文件apache-solr-3.5.0.xml的内容如下所示:

 

 

 

[html] view plaincopy
  1. <Context docBase="${catalina.home}/webapps/apache-solr-3.5.0.war" debug="0" crossContext="true" >  
  2.    <Environment name="solr/home" type="java.lang.String" value="${catalina.home}/conf/multicore" override="true" />  
  3. </Context>  

docBase指定了我们的WAR文件的位置,上面的“solr/home”非常关键,在Web容器启动以后会加载Solr的基本配置并初始化相应的组件实例,它会根据指定的“solr/home”配置的路径去搜索相关的配置,例如,上面我们将“solr/home”指向了目录apache-tomcat-6.0.32\conf\multicore。

第4步:设置Solr的字符集;

默认Solr使用了UTF-8字符集编码,如果你的Tomcat不是的话,在执行中文搜索的时候可能会出现乱码。如果你的Tomcat默认8080端口请求字符集就是UTF-8,并且想使用这个默认的端口提供搜索服务,则可以修改apache-tomcat-6.0.32\conf\server.xml文件的内容,如下所示:

 

 

[html] view plaincopy
  1. <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" URIEncoding="UTF-8" redirectPort="8443" />  
上面我们增加了一个URIEncoding="UTF-8"的配置。

 

如果想使用一个新的未被占用的端口,则可以在apache-tomcat-6.0.32\conf\server.xml中增加一个配置,例如使用8888端口,配置内容如下所示:

 

[html] view plaincopy
  1. <Connector port="8888" protocol="HTTP/1.1" connectionTimeout="20000"  URIEncoding="UTF-8" redirectPort="8443" />  
第5步:验证

 

通过上面的步骤,现在可以启动Tomcat服务器,在浏览器地址栏这种输入http://localhost:8080/apache-solr-3.5.0/,你会看到如下内容:

 

[html] view plaincopy
  1. Welcome to Solr!  
  2.   
  3. <a href="http://localhost:8080/apache-solr-3.5.0/core0/admin/" target="_blank">Admin core0</a>   
  4. <a href="http://localhost:8080/apache-solr-3.5.0/core1/admin/" target="_blank">Admin core1</a>   
则说明已经安装成功了。你可以根据链接,点击进去,浏览一下Solr提供的管理界面及其相关的管理功能。

 

 

第二种方式:基于jar包搭建

 

这种方式,我们不再使用Solr默认提供,并对我们非常透明的WAR包来搭建,而是根据Solr发行包中的相关内容来搭建,更确切地说,我们把Solr在一个开发工具上搭建起来,暂且不考虑源码层面的内容。我比较习惯使用MyEclipse,我使用了MyEclipse Enterprise Workbench 8.0集成开发环境。

遵循下面的步骤,就可以实现:

 

  1. 创建一个Web Project,工程名称为solr35;
  2. 将apache-solr-3.5.0-src\apache-solr-3.5.0\solr\example\multicore目录,拷贝到工程solr35下面;
  3. 将apache-solr-3.5.0\apache-solr-3.5.0\dist以及solrj-lib目录中jar文件,拷贝到工程solr35\WebRoot\WEB-INF\lib下面;
  4. 将apache-solr-3.5.0-src\apache-solr-3.5.0\solr\lib目录中jar文件,拷贝到工程solr35\WebRoot\WEB-INF\lib下面;
  5. 将lucene-3.5.0\lucene-3.5.0\lucene-core-3.5.0.jar、lucene-3.5.0\lucene-3.5.0\contrib\spatial\lucene-spatial-3.5.0.jar、lucene-3.5.0\lucene-3.5.0\contrib\highlighter\lucene-highlighter-3.5.0.jar这三个文件,拷贝到solr35\WebRoot\WEB-INF\lib下面;
  6. 将apache-solr-3.5.0-src\apache-solr-3.5.0\solr\webapp\web目录,拷贝到solr35\WebRoot,并覆盖原来的全部内容;
  7. 修改solr35\WebRoot\WEB-INF\web.xml文件,增加如下内容:

 

 

[html] view plaincopy
  1. <env-entry>  
  2.    <env-entry-name>solr/home</env-entry-name>  
  3.    <env-entry-value>E:\Develop\myeclipse\workspace\solr35\multicore</env-entry-value>  
  4.    <env-entry-type>java.lang.String</env-entry-type>  
  5. </env-entry>  
实际上,就是指定了Web容器启动后,Solr加载实例的相关配置和索引数据的目录。

 

另外,这样是直接在web.xml中进行了硬编码配置,如果solr/home变化了,每次都需要修改web.xml文件。还有一种方式是,直接增加Web容器的启动选项来指定,如下所示:

 

[plain] view plaincopy
  1. -Dsolr.solr.home=E:\Develop\myeclipse\workspace\solr35\multicore  
这样,配置就更加灵活了,非常方便。

 

通过上面的配置,可以启动Tomcat服务器了,并通过访问http://localhost:8080/solr35来进行验证。

 

 

第三种方式:基于源码搭建


 

基于源码搭建的好处的就是,我们在开发过程中可以方便地进行调试跟踪,这样也能够便于更深入地了解Solr框架的执行机制。Solr是基于Lucene这个开源搜索引擎库开发的框架,通过了解Solr的源代码,你可以更深入地熟悉如何在Lucene之上构建适合自己的搜索应用,甚至你完全可以将Solr改造成自己需要的应用程序。一般来说,我们使用Solr搭建搜索服务器的适合,完全可以不需要熟悉Lucene是怎么样实现索引和全文检索的,但是在Solr上进行开发调试,如调试搜索的相关度时,就需要对Lucene有一定的了解,才能在调优的过程中事半功倍。

基于源码的搭建,我采用了一种Lucene和Solr的源代码都可以进行修改,即将Lucene和Solr的代码导入的开发环境中。具体如何导入,因为代码都是开源的,你可以使用任何方法实现,不再累述。这里,我们简单说一下,我将solr和Lucene分别导入到了两个工程中:Lucene Java Project、Solr Web Project。我把工程的.classpath文件粘贴一下,以供参考:

Lucene Java Project的.classpath文件内容如下:

 

[html] view plaincopy
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <classpath>  
  3.     <classpathentry kind="src" path="src/lucene/src/java"/>  
  4.     <classpathentry kind="src" path="src/lucene/contrib/analyzers/common/src/java"/>  
  5.     <classpathentry kind="src" path="src/lucene/contrib/analyzers/common/src/test"/>  
  6.     <classpathentry kind="src" path="src/lucene/contrib/analyzers/smartcn/src/java"/>  
  7.     <classpathentry kind="src" path="src/lucene/contrib/analyzers/smartcn/src/test"/>  
  8.     <classpathentry kind="src" path="src/lucene/contrib/analyzers/stempel/src/java"/>  
  9.     <classpathentry kind="src" path="src/lucene/contrib/analyzers/stempel/src/test"/>  
  10.     <classpathentry kind="src" path="src/lucene/contrib/benchmark/src/java"/>  
  11.     <classpathentry kind="src" path="src/lucene/contrib/benchmark/src/test"/>  
  12.     <classpathentry kind="src" path="src/lucene/contrib/demo/src/java"/>  
  13.     <classpathentry kind="src" path="src/lucene/contrib/demo/src/test"/>  
  14.     <classpathentry kind="src" path="src/lucene/contrib/facet/src/java"/>  
  15.     <classpathentry kind="src" path="src/lucene/contrib/facet/src/test"/>  
  16.     <classpathentry kind="src" path="src/lucene/contrib/facet/src/examples"/>  
  17.     <classpathentry kind="src" path="src/lucene/contrib/grouping/src/java"/>  
  18.     <classpathentry kind="src" path="src/lucene/contrib/grouping/src/test"/>  
  19.     <classpathentry kind="src" path="src/lucene/contrib/highlighter/src/java"/>  
  20.     <classpathentry kind="src" path="src/lucene/contrib/highlighter/src/test"/>  
  21.     <classpathentry kind="src" path="src/lucene/contrib/icu/src/java"/>  
  22.     <classpathentry kind="src" path="src/lucene/contrib/icu/src/tools/java"/>  
  23.     <classpathentry kind="src" path="src/lucene/contrib/icu/src/test"/>  
  24.     <classpathentry kind="src" path="src/lucene/contrib/instantiated/src/java"/>  
  25.     <classpathentry kind="src" path="src/lucene/contrib/instantiated/src/test"/>  
  26.     <classpathentry kind="src" path="src/lucene/contrib/join/src/java"/>  
  27.     <classpathentry kind="src" path="src/lucene/contrib/join/src/test"/>  
  28.     <classpathentry kind="src" path="src/lucene/contrib/memory/src/java"/>  
  29.     <classpathentry kind="src" path="src/lucene/contrib/memory/src/test"/>  
  30.     <classpathentry kind="src" path="src/lucene/contrib/misc/src/java"/>  
  31.     <classpathentry kind="src" path="src/lucene/contrib/misc/src/test"/>  
  32.     <classpathentry kind="src" path="src/lucene/contrib/queries/src/java"/>  
  33.     <classpathentry kind="src" path="src/lucene/contrib/queries/src/test"/>  
  34.     <classpathentry kind="src" path="src/lucene/contrib/queryparser/src/java"/>  
  35.     <classpathentry kind="src" path="src/lucene/contrib/queryparser/src/test"/>  
  36.     <classpathentry kind="src" path="src/lucene/contrib/remote/src/java"/>  
  37.     <classpathentry kind="src" path="src/lucene/contrib/remote/src/test"/>  
  38.     <classpathentry kind="src" path="src/lucene/contrib/spatial/src/java"/>  
  39.     <classpathentry kind="src" path="src/lucene/contrib/spatial/src/test"/>  
  40.     <classpathentry kind="src" path="src/lucene/contrib/spellchecker/src/java"/>  
  41.     <classpathentry kind="src" path="src/lucene/contrib/spellchecker/src/test"/>  
  42.     <classpathentry kind="src" path="src/lucene/contrib/xml-query-parser/src/java"/>  
  43.     <classpathentry kind="src" path="src/lucene/contrib/xml-query-parser/src/test"/>  
  44.     <classpathentry kind="src" path="src/lucene/contrib/xml-query-parser/src/demo/java"/>  
  45.     <classpathentry kind="src" path="src/lucene/test-framework/src/java"/>  
  46.     <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>  
  47.     <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Contributions Dependences"/>  
  48.     <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Lucene Contrib Dependences"/>  
  49.     <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/JUnit 4.7"/>  
  50.     <classpathentry kind="output" path="bin"/>  
  51. </classpath>  
Solr Web Project的.classpath文件内容如下:

 

 

[html] view plaincopy
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <classpath>  
  3.     <classpathentry kind="src" path="src/solr/solrj/src/java"/>  
  4.     <classpathentry kind="src" path="src/solr/solrj/src/test"/>  
  5.     <classpathentry kind="src" path="src/solr/core/src/java"/>  
  6.     <classpathentry kind="src" path="src/solr/core/src/test"/>  
  7.     <classpathentry kind="src" path="src/solr/contrib/analysis-extras/src/java"/>  
  8.     <classpathentry kind="src" path="src/solr/contrib/analysis-extras/src/test"/>  
  9.     <classpathentry kind="src" path="src/solr/contrib/clustering/src/java"/>  
  10.     <classpathentry kind="src" path="src/solr/contrib/clustering/src/test"/>  
  11.     <classpathentry kind="src" path="src/solr/contrib/dataimporthandler/src/java"/>  
  12.     <classpathentry kind="src" path="src/solr/contrib/dataimporthandler/src/test"/>  
  13.     <classpathentry kind="src" path="src/solr/contrib/dataimporthandler-extras/src/java"/>  
  14.     <classpathentry kind="src" path="src/solr/contrib/dataimporthandler-extras/src/test"/>  
  15.     <classpathentry kind="src" path="src/solr/contrib/extraction/src/java"/>  
  16.     <classpathentry kind="src" path="src/solr/contrib/extraction/src/test"/>  
  17.     <classpathentry kind="src" path="src/solr/contrib/langid/src/java"/>  
  18.     <classpathentry kind="src" path="src/solr/contrib/langid/src/test"/>  
  19.     <classpathentry kind="src" path="src/solr/contrib/uima/src/java"/>  
  20.     <classpathentry kind="src" path="src/solr/contrib/uima/src/test"/>  
  21.     <classpathentry kind="src" path="src/solr/contrib/velocity/src/java"/>  
  22.     <classpathentry kind="src" path="src/solr/contrib/velocity/src/test"/>  
  23.     <classpathentry kind="src" path="src/solr/test-framework/src/java"/>  
  24.     <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>  
  25.     <classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/>  
  26.     <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Solr Contrib Dependences"/>  
  27.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/apache-solr-noggit-r1099557.jar"/>  
  28.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-codec-1.5.jar"/>  
  29.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-csv-1.0-SNAPSHOT-r966014.jar"/>  
  30.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-fileupload-1.2.1.jar"/>  
  31.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-httpclient-3.1.jar"/>  
  32.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-io-1.4.jar"/>  
  33.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/commons-lang-2.4.jar"/>  
  34.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/easymock-2.2.jar"/>  
  35.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/geronimo-stax-api_1.0_spec-1.0.1.jar"/>  
  36.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/guava-r05.jar"/>  
  37.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jcl-over-slf4j-1.6.1.jar"/>  
  38.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/junit-4.7.jar"/>  
  39.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/log4j-over-slf4j-1.6.1.jar"/>  
  40.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/servlet-api-2.4.jar"/>  
  41.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/slf4j-api-1.6.1.jar"/>  
  42.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/slf4j-jdk14-1.6.1.jar"/>  
  43.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/wstx-asl-3.2.7.jar"/>  
  44.     <classpathentry combineaccessrules="false" kind="src" path="/lucene35"/>  
  45.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/core-3.1.1.jar"/>  
  46.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jetty-6.1.26-patched-JETTY-1340.jar"/>  
  47.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jetty-util-6.1.26-patched-JETTY-1340.jar"/>  
  48.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jsp-2.1-glassfish-2.1.v20091210.jar"/>  
  49.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jsp-2.1-jetty-6.1.26.jar"/>  
  50.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/jsp-api-2.1-glassfish-2.1.v20091210.jar"/>  
  51.     <classpathentry kind="lib" path="WebRoot/WEB-INF/lib/servlet-api-2.5-20081211.jar"/>  
  52.     <classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>  
  53. </classpath>  
搭建起来开发环境,你可以更加深入的学习Solr了。

 

 

Solr相关链接

 

这里,分享一些有关学习开发Solr的参考链接,可能在实际学习和开发中,会起到一些帮助。

 

[plain] view plaincopy
  1. 01. Solr  
  2.   
  3. http://lucene.apache.org/solr/  
  4. http://wiki.apache.org/solr/SolrResources  
  5. http://lucene.apache.org/solr/features.html  
  6. http://lucene.apache.org/solr/tutorial.html  
  7. http://wiki.apache.org/solr  
  8. https://issues.apache.org/jira/browse/SOLR  
  9. http://wiki.apache.org/solr/FAQ  
  10. http://wiki.apache.org/solr/SolrRelevancyFAQ  
  11. http://wiki.apache.org/solr/SolrRelevancyCookbook  
  12. http://khaidoan.wikidot.com/solr  
  13. http://yonik.wordpress.com/  
  14.   
  15.  02. Solr mailing list  
  16.   
  17. http://mail-archives.apache.org/mod_mbox/lucene-solr-user/  
  18. http://lucene.472066.n3.nabble.com/Solr-f472067.html  
  19.   
  20.  03. Solr Insntallation  
  21.   
  22. http://wiki.apache.org/solr/SolrTomcat  
  23. http://wiki.apache.org/solr/SolrJetty  
  24. http://wiki.apache.org/solr/SolrResin  
  25. http://wiki.apache.org/solr/SolrJBoss  
  26. http://wiki.apache.org/solr/SolrWebSphere  
  27. http://wiki.apache.org/solr/SolrWeblogic  
  28. http://wiki.apache.org/solr/SolrGlassfish  
  29. http://redmine.synyx.org/projects/opencms-solr-module/wiki/Integrating_Solr_into_an_existing_application  
  30.   
  31.  04. Solr Basis  
  32.   
  33. http://wiki.apache.org/solr/SolrTerminology  
  34. http://wiki.apache.org/solr/SchemaXml  
  35. http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/schema.xml?view=markup  
  36. http://wiki.apache.org/solr/SolrConfigXml  
  37. http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml  
  38. http://wiki.apache.org/solr/UpdateXmlMessages  
  39. http://wiki.apache.org/solr/CommonQueryParameters  
  40. http://wiki.apache.org/solr/LocalParams  
  41. http://wiki.apache.org/solr/SolrQuerySyntax  
  42. http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters  
  43. http://wiki.apache.org/solr/SolrInstall  
  44. http://wiki.apache.org/solr/mySolr  
  45.   
  46.  05. Solr Functions  
  47.   
  48. http://wiki.apache.org/solr/FunctionQuery  
  49. http://www.lucidimagination.com/blog/2009/11/20/fun-with-solr-functions/  
  50. http://www.supermind.org/blog/756/how-to-write-a-custom-solr-functionquery  
  51. http://search.lucidimagination.com/search/out?u=http%3A%2F%2Flucene.472066.n3.nabble.com%2Fhow-do-I-create-custom-function-that-uses-multiple-ValuesSources-tp1402645p1402645.html  
  52.   
  53.  06. Solr Payload  
  54.   
  55. http://wiki.apache.org/solr/Payloads  
  56. http://lucene.472066.n3.nabble.com/How-to-use-Payloads-with-Solr-td679691.html  
  57. http://stephenpope.co.uk/?p=32  
  58. http://lucene.472066.n3.nabble.com/synonym-payload-boosting-td563432.html  
  59.   
  60.  07. Solr Dismax  
  61.   
  62. http://wiki.apache.org/solr/DisMax  
  63. http://www.lucidimagination.com/blog/2010/05/23/whats-a-dismax/  
  64. http://wiki.apache.org/solr/DisMaxRequestHandler  
  65. http://wiki.apache.org/solr/DisMaxQParserPlugin  
  66. http://lucene.apache.org/solr/api/org/apache/solr/util/doc-files/min-should-match.html  
  67. http://lucene.472066.n3.nabble.com/Dismax-Boosting-td1906083.html  
  68. http://lucene.472066.n3.nabble.com/configure-dismax-requesthandlar-for-boost-a-field-td3137239.html  
  69. http://code.google.com/p/solr-boostmax/  
  70. http://www.lucidimagination.com/blog/2009/03/31/nested-queries-in-solr/  
  71.   
  72.  08. Solr Performance  
  73.   
  74. http://wiki.apache.org/solr/SolrPerformanceData  
  75. http://wiki.apache.org/solr/SolrPerformanceFactors  
  76. http://wiki.apache.org/solr/BenchmarkingSolr  
  77. http://code.google.com/p/solrmeter/  
  78.   
  79.  09. Solr Cache  
  80.   
  81. http://wiki.apache.org/solr/SolrCaching  
  82. http://wiki.apache.org/solr/SolrConfigXml#HTTP_Caching  
  83. http://wiki.apache.org/solr/SolrAndHTTPCaches  
  84. http://java.dzone.com/news/optimization-%E2%80%93-filter-cache?mz=33057-solr_lucene  
  85.   
  86.  10. Solr Faceted Search  
  87.   
  88. http://wiki.apache.org/solr/SolrFacetingOverview  
  89. http://wiki.apache.org/solr/SimpleFacetParameters  
  90. http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Faceted-Search-Solr  
  91. http://www.lucidimagination.com/devzone/technical-articles/faceted-search-solr  
  92. http://stackoverflow.com/questions/3068810/solr-multiple-facet-dates  
  93.   
  94.  11. Solr Distributed  
  95.   
  96. http://wiki.apache.org/solr/DistributedSearch  
  97. http://wiki.apache.org/solr/CollectionDistribution  
  98. http://wiki.apache.org/solr/SolrReplication  
  99. http://wiki.apache.org/solr/WritingDistributedSearchComponents  
  100. http://wiki.apache.org/solr/SolrCloud  
  101. http://wiki.apache.org/solr/SolrCollectionDistributionScripts  
  102. http://wiki.apache.org/solr/SolrCollectionDistributionStatusStats  
  103. http://wiki.apache.org/solr/SolrCollectionDistributionOperationsOutline  
  104.   
  105.  12. Solr Clustering  
  106.   
  107. http://wiki.apache.org/solr/ClusteringComponent  
  108. http://www.lucidimagination.com/blog/2009/09/28/solrs-new-clustering-capabilities/  
  109.   
  110.  13. Solr Near Realtime Search  
  111.   
  112. http://wiki.apache.org/solr/NearRealtimeSearch  
  113. http://www.lucidimagination.com/blog/2011/07/11/benchmarking-the-new-solr-%E2%80%98near-realtime%E2%80%99-improvements/  
  114.   
  115.  14. Solr Spellchecker  
  116.   
  117. http://wiki.apache.org/solr/SpellCheckComponent  
  118. http://wiki.apache.org/solr/SpellCheckingAnalysis  

[仅用于学习收藏,转载文章:http://blog.csdn.net/shirdrn/article/details/7050075]
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics