搜索篇(0)Lucene环境配置

Lucene截止目前,最新版本为v7.4.0。它是一个开放源代码的全文检索引擎工具包,但它不是一个完整的全文检索引擎,而是一个全文检索引擎的架构,提供了完整的查询引擎和索引引擎,部分文本分析引擎(英文与德文两种西方语言)。

本系列文章重点对Lucene全文检索工具库进行了分析,其中索引部分包括中文分词及其常见的分词器介绍、倒排索引的构建、索引结构的分析,检索部分涵盖了基本查询方式介绍、VSM评分机制、自定义排序方式以及与SQL查询异同比较;最后简单的介绍了Luke工具的使用。

配置Lucene开发环境

  • 安装Java开发环境。(JDK 8 up)
  • 下载Lucene:http://www.apache.org/dyn/closer.lua/lucene/java/7.4.0
  • 在Eclipse(或MyEclipse[推荐])中,创建项目名HelloLucene(推荐Web Project),引入Lucene JAR包。
    这里写图片描述
    注:Add External JARs…(右击项目->Build Path)




©qingdujun
2018-9-8 于 北京 海淀


END




附录(配置git)

作为一名程序员亦或是学生,从github上抄代码的能力不可或缺。以下为git配置命令,请将nameemail设置成自己的~

$ git config --global user.name "qingdujun"
$ git config --global user.email "[email protected]"

运行ssh-keygen命令后,直接一路敲击回车键即可。

$ ssh-keygen -t rsa -C "[email protected]"

Generating public/private rsa key pair.
Enter file in which to save the key (/home/qingdujun/.ssh/id_rsa):
Created directory ‘/home/qingdujun/.ssh’.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/qingdujun/.ssh/id_rsa.
Your public key has been saved in /home/qingdujun/.ssh/id_rsa.pub.
根据具体的提示,如我的是/home/qingdujun/.ssh/id_rsa.pub.将该文件内容。拷贝至,

g i t h u b . c o m > s e t t i n g s > S S H   a n d   G P G k e y s > N e w   S S H   k e y

References:
[1] https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000
[2] https://git-scm.com/book/zh/v1/Git-%E5%9F%BA%E7%A1%80-%E6%89%93%E6%A0%87%E7%AD%BE
[3] http://www.ruanyifeng.com/blog/2014/06/git_remote.html
[4] https://www.genuitec.com/products/myeclipse/download/
[5] http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
[6] http://www.apache.org/dyn/closer.lua/lucene/java/7.4.0

猜你喜欢

转载自blog.csdn.net/u012339743/article/details/82528417