小编Tom*_*For的帖子

Boost Solr结果基于包含命中的字段

我正在浏览网页寻找索引和搜索框架,并偶然发现索尔.我们绝对需要的功能是根据命中包含的字段来提升结果.

一个小例子:

考虑这样的记录:

<movie>
  <title>The Dark Knight</title>
  <alternative_title>Batman Begins 2</alternative_title>
  <year>2008</year>
  <director>Christopher Nolan</director>
  <plot>Batman, Gordon and Harvey Dent are forced to deal with the chaos unleashed by an anarchist mastermind known only as the Joker, as it drives each of them to their limits.</plot>
</movie>
Run Code Online (Sandbox Code Playgroud)

我想例如结合title,alternative_titleplot领域进入一个搜索领域,这是不看的Solr/Lucene的文档和教程后,太难了.
然而,我也希望那些受欢迎的电影获得的title分数高于击中的分数,alternative_title而那些依次命中的分数应高于该plot领域的命中率.
有没有办法在XML中表明这种评分,还是我们需要开发一些自定义评分算法?

还请注意,我给出的示例是虚构的,真实数据可能包含100多个字段.

lucene solr scoring solr-boost

14
推荐指数
3
解决办法
1万
查看次数

标签 统计

lucene ×1

scoring ×1

solr ×1

solr-boost ×1