Solr 开源的企业版的搜索平台

Solr是基于Apache Lucene项目开发成的一款开源的企业版搜索平台,本人觉得对于一些中型的互联网信息网站,还是有可用之处,尤其是电子商务网站。下面是Solr的官网标榜的特点,具体有多少符合需要实践来考量,


  1. 强大的全文搜索
  2. 搜索词高亮
  3. 侧面搜索
  4. 动态集群
  5. 数据库集成
  6. 富文档处理
  7. 地图搜索
  8. 高可扩展性,
  9. 分布式搜索
  10. 索引复制



  1. 完善的Web管理界面
  2. 服务器统计信息
  3. 可扩展的插件架构


现在最新稳定版是 Apache Solr 3.6.1 ,下载地址是:


  • Java 1.5 or greater installed. (Note: starting with Solr 4, Java 1.6 will be required)
  • A servlet container such as Tomcat, Jetty, or Resin
  • A Solr distribution (Or a Nightly build if you want the latest)
  • Although Solr strives to be agnostic of the Locale where the server is running, some code paths may inadvertently be depending on the System default Locale, or Charset. (In particular, there are known bugs in Sun’s JVM dealing with XSLTs in non English locales) It is recommended that when running Solr you set the following system properties: -Duser.language=en
  • For full international charset support, please make sure you use a full Java JDK, as opposed to the default JRE which is pre-installed on many computers


  • Stop your servlet container
  • From the Solr distribution, copy the Solr war to the webapps directory of your servlet container as solr.war
  • From the Solr distribution, copy the example Solr home example/solr as a template for your Solr home.
  • Start the servlet container, passing the location of your Solr home. This may be done in a number of ways:
    • Set the java system property solr.solr.home to your Solr home. (ie: using the example jetty setup: java -Dsolr.solr.home=/some/dir -jar start.jar
    • Configure the servlet container such that a JNDI lookup of “java:comp/env/solr/home” by the Solr webapp will point to the Solr home.
    • The default Solr home is “solr” under the JVM’s current working directory ($CWD/solr), so start the servlet container in the directory containing ./solr
  • Go to the Solr admin page to verify that the installation is working. It will be at http://localhost:8080/solr/admin
    • The servlet container may have started on a port other than 8080… check the servlet containers documentation if you don’t know what this is.
    • If there is already a servlet container running at that port, yours may fail to start. Shut down the other one or change the port that yours is running at.




电子邮件地址不会被公开。 必填项已用*标注

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>