首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用edismax的Solr相关性

使用edismax的Solr相关性
EN

Stack Overflow用户
提问于 2014-10-14 20:01:37
回答 1查看 133关注 0票数 0

如何在solr配置中添加edismax来给我的标题添加boosting,然后描述,然后方面,等等……

我的solr配置如下所示

代码语言:javascript
复制
<str name="defType">edismax</str>
<str name="qf">text^50 and title^1000 and contentdescription^180 and productname^140 and groupname^13 and maincontent^113 and contenttype^120 and published_date^115 and viewcount^114 and fileid^101 and filename^10 and content^10</str>
 <str name="pf">text^50 and title^1000 and contentdescription^180 and productname^140 and groupname^13 and maincontent^113 and contenttype^120 and published_date^115 and viewcount^114 and fileid^101 and filename^10 and content^10</str>

架构为

代码语言:javascript
复制
<copyField source="id" dest="text"/>
    <copyField source="productid" dest="text"/>
     <copyField source="groupid" dest="text"/>
   <copyField source="maincontent" dest="text"/>
   <copyField source="title" dest="text" />
   <copyField source="contentdescription" dest="text"/>
   <copyField source="groupname" dest="text"/>
   <copyField source="productname" dest="text"/>
   <copyField source="videourl" dest="text"/>
   <copyField source="contenttype" dest="text" />
<copyField source="title" dest="autocomplete-field" />
EN

回答 1

Stack Overflow用户

发布于 2014-10-15 18:33:56

只有几件事需要检查...

  1. 从qf和pf中删除所有‘and’,pf,字段名列表由空格分隔,应该看起来像这样:

文本^50标题^1000内容描述^180产品名称^140组名称^13主要内容^113内容类型^120 published_date^115视图计数^114文件10^101文件名^10内容^10

  1. 确保qf和pf中包含的所有字段都已编制索引(在字段定义中使用选项indexed=“

”)

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26360355

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档