搜索结果中未显示继承的内容类型 [英] Inherited Content Type Not Appearing In Search Results

查看:83
本文介绍了搜索结果中未显示继承的内容类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好。

我创建了一个新的内容类型,它是从名为Article Page的内置内容类型继承而来的。我在页面库中的发布站点上使用它。我可以成功地基于这种新的内容类型创建和查看页面。

I have created a new content type which I inherited from the built in content type named Article Page. I am using this on a publishing site in the pages library. I can create and view pages based on this new content type successfully.

我的问题是我无法根据这种新的内容类型搜索任何这些页面。它们根本不会显示在搜索结果中。如果我在同一个库中的同一网站中创建基于内置文章页面内容类型的页面,它们会在搜索结果中完美地显示

My problem is that I cannot search for any of these pages based on this new content type. They simply do not show up in search results. If I create a page based on the built in Article Page content type in the same site in the same library, they show up perfectly in search results.

我已重新编制索引库,重新索引网站,并验证页面库中的文档可以在搜索结果中返回。

I have reindexed the library, reindexed the site, and verified that documents in the pages library can be returned in search results.

我正在使用SharePoint Online环境。

I am using a SharePoint Online environment.

我很难过。有什么想法吗?

I'm stumped. Any ideas?

谢谢

推荐答案

您使用什么查询进行搜索?以下基于自定义内容类型的查询适用于以下项目之一:

what query do you use for search? The following query based on custom content type works in one of the project:

ContentTypeId:0x0110001105041E0BD44E9D99D719715D5FF900*


其中0x0110001105041E0BD44E9D99D719715D5FF900为id自定义内容类型。请注意,当您使用某个ID为doclib配置自定义内容类型时,Sharepoint会创建继承您的内部CT。与您在配置期间指定的CT ID相比,此继承的内容类型在
端具有额外的guid。这就是为什么你需要使用模式匹配ContentTypeId:{ctId} *而不是相等运算符ContentTypeId = {ctId}。

where 0x0110001105041E0BD44E9D99D719715D5FF900 is id of custom content type. Note that when you provision custom content type to doclib with some ID Sharepoint creates internal CT which inherits yours. This inherited content type has additional guid at the end comparing with CT id which you specified during provisioning. That's why you need to use pattern matching ContentTypeId:{ctId}* instead of equality operator ContentTypeId={ctId}.


这篇关于搜索结果中未显示继承的内容类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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