如果想要搜索结果按某一field排序, 而相同的field情况下匹配度高的优先


1) 使用sort

solr搜索结果按某字段排序

可见使用sort排序只满足将section=3的排在前面, 但是同样都是section为3的不符合按相似度排序

solr搜索结果按某字段排序


2) 应该对排序字段加权才是正解

solr搜索结果按某字段排序


solr搜索结果按某字段排序

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2022-02-09
  • 2022-03-03
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案