Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在阅读 solr 食谱,它建议使用 boost 函数bf=product(popularity)参数来根据“受欢迎程度”分数来提升某些文档。
bf=product(popularity)
这也可以使用文档上的索引时间提升来实现,对吗?
那么哪个是更好的选择?在以下方面是否有区别:
这取决于您的受欢迎程度变化的频率。如果它是预先烘焙的并且不经常更改,那么您可以在索引时进行提升。如果它经常更改(例如基于实时搜索),那么您可能希望使用(例如)ExternalFileField将其存储在特定记录的外部。