1 import java.lang.reflect.Field; 2 import java.lang.reflect.Method; 3 import java.util.Date; 4 5 public class CopyBean{ 6 7 /** 8 ...
分类:
其他好文 时间:
2014-10-20 02:04:18
阅读次数:
284
昨天给公司同事们介绍了lucene相关度打分的公式,大家提到了一个问题,总感觉用相关度排序的时候,lucene会把查询关键字相邻紧密的doc排在前面,但是打分公式里面却没提到过这个因素,所以我现在来验证下查询词的紧密程度是否会影响打分。局部代码添加doc程序1 设置lucene保存field的所有信...
分类:
编程语言 时间:
2014-10-19 14:20:30
阅读次数:
150
两个field,一个是KFC数据 一个列放的内容是“same”每条数据都flushSLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logge...
分类:
其他好文 时间:
2014-10-19 14:17:30
阅读次数:
304
官方文档http://lucene.apache.org/core/4_9_0/core/org/apache/lucene/search/similarities/TFIDFSimilarity.htmlterm:不是单纯的key。是field-key,指定域下面的key影响打分的因素coord:...
分类:
Web程序 时间:
2014-10-19 14:14:04
阅读次数:
254
DocFieldProcessor类的任务1 按顺序存储所有的field和对应的fieldinfo2 为当前这篇doc的field按照fieldname来建立hash索引3 调用InvertedDocConsumer类(抽象),对field的内容分词和建立内存索引DocFieldProcessor类...
分类:
其他好文 时间:
2014-10-19 12:47:27
阅读次数:
219
一、实验名称:构建索引二、实验日期:2013/9/21三、实验目的:1) 能理解Lucene中的Document-Field结构的数据建模过程;2) 能编针对特定数据生成索引文件。四、实验用的仪器和材料:MyEclipse 10,JDK五、实验的步骤和方法:题目一:在指定目录生成表示3本书的索引,要...
分类:
Web程序 时间:
2014-10-19 01:13:45
阅读次数:
193
Description
Farmer John's cows have discovered that the clover growing along the ridge of the hill (which we can think of as a one-dimensional number line) in his field is particularly good.
...
分类:
编程语言 时间:
2014-10-19 00:08:59
阅读次数:
331
ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionIn the field of computer science, forest is important and deeply researched , it is a mod...
分类:
其他好文 时间:
2014-10-18 03:00:46
阅读次数:
270
OverviewPackageClassUseTreeDeprecatedIndexHelpPREV CLASS NEXT CLASSFRAMES NO FRAMES All ClassesSUMMARY:NESTED|FIELD|CONSTR|METHODDETAIL:FIELD|CONSTR|M...
分类:
其他好文 时间:
2014-10-17 11:31:50
阅读次数:
211
taobao.trades.sold.get 取得交易列表从店铺取得时间taobao.shop.get (nick,field)shop.created循环读取从开店时间到当前时间的所有交易taobao.trades.sold.get(start_created,end_created,field)...
分类:
其他好文 时间:
2014-10-15 20:53:11
阅读次数:
211