合并document文件(默认10个合并)
indexWriter.optimize() //每两个就合并成一个文件
indexWriter.setMergeFactor(3) //自定义合并对象,满足三个cfs文件合并
indexWriter.optimize() //每两个就合并成一个文件
indexWriter.setMergeFactor(3) //自定义合并对象,满足三个cfs文件合并
上一篇:lucene的原理
下一篇:luceneday-02
写在前面es在进行数据查询时,数据的返回顺序是由评分决定的,而默认的评分是采用的相关度评分,但在某些业务场景中如果是仅仅考虑相关度评分的话,无法满足需求,所以es提供了function score query来通过其他的方式来改变最终的评分,如下:本文一起来看下这部分相关的内容。1:例子考虑这样的场景,某良心企业发起一项征文活动,文章主题你对996的看法,并且文章发布到网上可以供广大的热心网友投票
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M