开发者

Including an Item's Fields in Sitecore Search

开发者 https://www.devze.com 2023-04-03 06:19 出处:网络
I have a (Lucene) search control which retrieves items from Sitecore\'s master database if the item\'s name matches a term passed in.

I have a (Lucene) search control which retrieves items from Sitecore's master database if the item's name matches a term passed in.

However I also want the search to include the item's fields, such that if the search term matches 开发者_如何学Gowithin the item's field, the item is returned. How can this be done?

N.B. The item and its fields are displayed on a page within the site, however the search does not match this either.


If the text you are searching for is held in a Single-Line Text field, it may be necessary to add the following into your web.config file under configuration\sitecore\indexes\index\fields :

<type storage="unstored" stripTags="true">single-line text</type>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号