索引 Sitecore 个人资料卡及其价值



我目前正在通过自定义ComputedFieldTracking字段中索引应用于项目Profile Cards。这很好用,我可以根据它与我正在搜索的个人资料卡匹配来检索结果。

但是我想考虑Profile Cardvalue。 即在航空Profile Card中具有 10 的结果项应该比在航空Profile Card中具有 5 的另一个结果更相关。

实现此目的的一个明显方法是通过Boosting,但这需要在Indexing而不是Search时间发生。

有没有办法根据字段中的值在索引时应用提升?还是有别的办法?

可以选择在搜索后按配置文件卡值对结果进行排序,但这不是很高性能,而是在索引时产生开销。

我会通过创建一个自定义规则来解决这个问题,该规则根据其个人资料卡的值提升每个索引项。

您可以在下面看到创建提升规则的示例:

  • http://www.sitecore.net/learn/blogs/technical-blogs/john-west-sitecore-blog/posts/2013/05/sitecore-7-boosting-items-by-depth-with-the-rules-engine.aspx
  • https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/search_and_indexing/search_result_boosting#_Ref350961403

编辑:请注意,此方法将对所有索引中所有搜索查询中的项目应用提升。这实际上适用于所有索引时间方法。因此,您可能毕竟希望使用查询时间提升。

最新更新