zoukankan      html  css  js  c++  java
  • 使用Maven运行Solr(翻译)

     Solr是一个使用开源的搜索服务器,它采用Lucene Core的索引和搜索功能构建,它可以用于几乎所有的编程语言实现可扩展的搜索引擎

    Solr的虽然有很多优点,建立开发环境是不是其中之一。此博客条目​​介绍了我们如何通过使用使用Maven运行Solr,并确保每个开发人员使用相同的configuration, schema 和 Solr版本。

    我们的Maven构建的要求如下:

    • The properties of our Maven build must be read from an external property file. The only exception to this rule is that the version numbers of the dependencies are declared in our POM file.
    • The build process must copy the Solr configuration files to the correct directory when our Solr instance is started.
    • The build process must clean up the configuration files when a developer executes mvn cleancommand at command prompt.
    • It must be possible to start our Solr instance by using the Jetty Maven plugin.

    We can fulfil these requirements by following these steps:

    1. Create a POM file.
    2. Get the required dependencies.
    3. Get the Solr configuration files.
    4. Create the properties file which contain the properties used in our Maven build.
    5. Edit the solr.xml file.
    6. Configure the Properties Maven plugin.
    7. Configure the Copy Maven plugin.
    8. Configure the Jetty Maven plugin.

    These steps are described with more details in the following.

  • 相关阅读:
    C# 小规模查找集合性能测试
    高级前端开发不可或缺的知识
    移动前端开发-单页应用(spa)模型
    移动开发之用视频做背景
    纯CSS打造忙碌光标
    移动前端开发之数据库操作篇
    如何从源码中学习javascript
    Deffered.js的实现原理
    Codeforces Round #381 (Div. 2)
    2017 ZSTU寒假排位赛 #6
  • 原文地址:https://www.cnblogs.com/chenying99/p/3145252.html
Copyright © 2011-2022 走看看