Loading

摘要: 今天写了个单元测试,看看权重的变化,结果发现索引的时候啥都好好的,索引完拿出来看都是1,困惑了好一会,还好lucene的文档给出了解释:getBoostpublic float getBoost()Returns, at indexing time, the boost factor as set by setBoost(float).Note that once a document is indexed this value is no longer available from the index. At search time, for retrieved documents, thi 阅读全文
posted @ 2012-05-15 17:56 today4king 阅读(1461) 评论(2) 推荐(0) 编辑