我目前正在通过自定义Profile Cards
将Tracking
应用于ComputedField
字段中的项目的索引编入索引。这很好用,我可以根据匹配的配置文件卡检索结果。
但我想考虑value
的{{1}}。即航空Profile Card
中包含10的结果项目应该比航空Profile Card
中的5个结果更具相关性。
实现此目标的一个显而易见的方法是Profile Card
,但这需要在Boosting
时间Indexing
时间发生。
有没有办法根据字段中的值在索引时应用提升?或者还有另一种方式吗?
可以通过搜索后的配置文件卡值对结果进行排序,但这不是非常高效,而是将此开销放在索引时。
答案 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.