
Lucene
xinghaifeng2006
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
《开发自己的搜索引擎》读书笔记Lucene基础知识(1)
Lucene是一个全文索引工具,其核心内容包括索引、搜索、分词 下面是简单介绍,具体使用方法在后面 索引对应的类主要有两个:Document、Field. 1、Document意为文档,它代表一种逻辑文件,如果把索引比作一张表,那么Document相当于表中的每一条记录, Field相当于表的每个字段。 2、在构建完Document并为其添加...原创 2010-12-21 18:44:57 · 133 阅读 · 0 评论 -
使用IndexWrite建立索引(2)
IndexWrite的主要作用是针对索引进行创建,加入Document,合并各种索引字段 IndexWrite有三个公有构造函数 public IndexWrite(String path,Analyzer a,boolean create) ; public IndexWrite(File path,Analyzer a , boolean create) ; p...原创 2010-12-22 18:57:59 · 268 阅读 · 0 评论 -
使用IndexSearcher进行搜索(3)
lucene搜索相关的API多数都被包含在org.apache.lucene.search包中。 IndexSearcher提三个公有构造函数,可以初始化IndexSearcher: public IndexSearcher(String path) throws IOException ; public IndexSearcher(Directory directory...原创 2010-12-23 17:58:33 · 1174 阅读 · 0 评论 -
solr使用 备忘录 草稿
一、基础配置 官网下载: http://lucene.apache.org/solr/ 我下载下载版本是apache-solr-3.6.2 第一步:复制apache-solr-3.6.2\example\solr 文件夹到Tomcat7的根目录 第二步:复制apache-solr-3.6.2\example\webapps\solr.war 到Tomcat7的webapps目录下...原创 2013-06-04 16:02:04 · 147 阅读 · 0 评论