lucene 索引流程整理笔记
索引的原文档(Document)。
为了方便说明索引创建过程,这里特意用两个文件为例:
文件一:Students should be allowed to go out with their friends, but not allowed to drink beer.
文件二:My friend Jerry went to school to see his students but found them drunk which is not allowed.
结果处的索引文件:

- Document Frequency 即文档频率,表示总共有多少篇文档包含此词(Term)。
- Frequency 即词频率,表示每篇文档里面包含了几个词(Term)。
- 左边是词典,右边是倒排表
一步一个脚印,方便自己复习,欢迎大家指正,非常感谢,共同进步!
posted on 2014-07-25 00:29 lovebeauty 阅读(204) 评论(0) 收藏 举报
浙公网安备 33010602011771号