自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 lucene源码分析---7

lucene源码分析—QueryParser的parse函数QueryParser的parse,定义在父类QueryParserBase, public Query parse(String query) throws ParseException { ReInit(new FastCharStream(new StringReader(query))); try

2016-07-26 23:38:44 2071

原创 lucene源码分析---6

lucene源码分析—创建IndexReade String indexPath; IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(indexPath))); IndexSearcher searcher = new IndexSearcher(reader);

2016-07-25 10:13:31 3939

原创 lucene源码分析---5

lucene源码分析—flushDocumentsWriter的doflush开始, private boolean doFlush(DocumentsWriterPerThread flushingDWPT) throws IOException, AbortingException { boolean hasEvents = false; while (flushi

2016-07-23 20:46:21 7150 1

原创 lucene源码分析---4

lucene源码分析—创建索引根据《lucene源码分析—3》中的分析,创建索引最关键的函数是在DefaultIndexingChain的processField函数中的invert函数,invert函数定义在PerField中,代码如下, public void invert(IndexableField field, boolean first) throws IOExcep

2016-07-23 00:45:20 2741

原创 lucene源码分析---3

lucene源码分析—创建索引为了方便分析,这里继续贴出第一章中给出的lucene创建索引的实例, String filePath = ...//文件路径 String indexPath = ...//索引路径 File fileDir = new File(filePath);

2016-07-14 15:44:51 5612 3

原创 lucene源码分析---2

lucene源码分析—lucene创建索引之准备工作为了方便分析,这里再贴一次在上一章中lucene关于建立索引的实例的源代码, String filePath = ...//文件路径 String indexPath = ...//索引路径 File fileDir = new File(filePath);

2016-07-11 23:23:00 4099

原创 lucene源码分析---1

lucene源码分析本章开始分析lucene的源码,版本为目前最新的

2016-07-11 11:05:41 6167 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除