【问题标题】:Sitecore - Indexing data from presentation components with non-context datasourcesSitecore - 使用非上下文数据源索引来自演示组件的数据
【发布时间】:2013-06-16 10:48:22
【问题描述】:

我有一个 Sitecore 网站,其中许多页面主要由指向内容树中其他地方的数据源的各种子布局组合而成。

这是一个基本的问题示例。查看有关苹果的页面的人可能会看到“苹果”一词 10 次。但是,Lucene 不会为该单词索引 Apple 页面项,因为它存储在其他项中。

我确定这一定是一个常见问题,但我似乎找不到任何建议。

【问题讨论】:

    标签: lucene sitecore


    【解决方案1】:

    这是一个常见问题,在 38:29 的截屏视频中有解决方案:

    http://www.techphoria414.com/Blog/2012/May/Sitecore_Page_Editor_Unleashed

    抓取页面上的示例代码并查看PageEditor.Unleashed.Search.DynamicFields.VisualizationField 类,该类抓取所有数据源并将其内容添加到配置中的“_content”字段

    <dynamicField type="PageEditor.Unleashed.Search.DynamicFields.VisualizationField, PageEditor.Unleashed.Classes" name="_content" storageType="NO" indexType="TOKENIZED" vectorType="NO" boost="1f" />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-20
      • 1970-01-01
      • 1970-01-01
      • 2017-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多