如何在solr配置中添加edismax以使我的标题增强然后描述然后刻面等等......
我的solr配置看起来像这样
<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>
和
架构为
<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" />
答案 0 :(得分:0)
只需要检查几件事......
text ^ 50 title ^ 1000 contentdescription ^ 180 productname ^ 140 groupname ^ 13 maincontent ^ 113 contenttype ^ 120 published_date ^ 115 viewcount ^ 114 fileid ^ 101 filename ^ 10 content ^ 10