- 博客(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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人