Sitecore - 使用非上下文数据源索引来自演示组件的数据 [英] Sitecore - Indexing data from presentation components with non-context datasources

查看:8
本文介绍了Sitecore - 使用非上下文数据源索引来自演示组件的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have a Sitecore site where many of the pages are assembled mainly from various sublayouts pointing at datasources elsewhere in the content tree.

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

Here's a basic example of the problem. Someone viewing a page about apples might see the word 'apple' 10 times. However, Lucene will not index the Apple page item for that word because it's stored in other items.

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

I'm sure this must be a common issue but I can't seem to find any advice on it.

推荐答案

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

This is a common issue and there's a solution in this screencast at 38:29:

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

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

Grab the sample code on the page and look at the class PageEditor.Unleashed.Search.DynamicFields.VisualizationField which grabs all data sources and adds their content to the "_content" field in the config

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

这篇关于Sitecore - 使用非上下文数据源索引来自演示组件的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆