Lucene2.3 sort过程简单总结(返回Hits对象)
创建SortField对象
创建Sort对象
执行IndexSearcher.search(query, sort)方法:
返回 new Hit(this, query, null, sort)
Hit的构造方法中:
Hit中的成员变量 Vector hitDocs = new Vector() 缓存检索到的hits
设置成员变量:
weight = query.weight(se
原创
2013-04-23 12:34:11 ·
851 阅读 ·
0 评论