索引Sitecore配置文件卡及其值

时间:2016-03-16 11:19:35

标签: c# lucene sitecore sitecore8

我目前正在通过自定义Profile CardsTracking应用于ComputedField字段中的项目的索引编入索引。这很好用,我可以根据匹配的配置文件卡检索结果。

但我想考虑value的{​​{1}}。即航空Profile Card中包含10的结果项目应该比航空Profile Card中的5个结果更具相关性。

实现此目标的一个显而易见的方法是Profile Card,但这需要在Boosting时间Indexing时间发生。

有没有办法根据字段中的值在索引时应用提升?或者还有另一种方式吗?

可以通过搜索后的配置文件卡值对结果进行排序,但这不是非常高效,而是将此开销放在索引时。

1 个答案:

答案 0 :(得分:0)

I would approach this by creating a custom rule that boosts each indexed item based on the values of its profile card.

You can see examples of creating boosting rules below:

EDIT: Note that this approach will apply boosting for items in all search queries in all of your indexes. This will actually be true for all index-time approaches. So you might want to go with query-time boosting after all.