Web services 是否可以搜索SharePoint元数据?
当我使用Search.asmx web服务时,它不允许我搜索元数据。我有办法做到这一点吗 下面是我到目前为止为我的查询提出的内容,但每次运行它时,它都会出现一个Web services 是否可以搜索SharePoint元数据?,web-services,sharepoint,Web Services,Sharepoint,当我使用Search.asmx web服务时,它不允许我搜索元数据。我有办法做到这一点吗 下面是我到目前为止为我的查询提出的内容,但每次运行它时,它都会出现一个InvalidPropertyException <?xml version="1.0" encoding="utf-8" ?> <QueryPacket xmlns="urn:Microsoft.Search.Query" Revision="1000"> <Query domain="QDomain"&g
InvalidPropertyException
<?xml version="1.0" encoding="utf-8" ?>
<QueryPacket xmlns="urn:Microsoft.Search.Query" Revision="1000">
<Query domain="QDomain">
<SupportedFormats><Format>urn:Microsoft.Search.Response.Document.Document</Format></SupportedFormats>
<Context>
<QueryText language="en-US" type="MSSQLFT">
<![CDATA[ SELECT Title, Rank, Size, Description, Write, Path FROM portal..scope() WHERE "Published" = 'Yes' ORDER BY "Rank" DESC ]]>
</QueryText>
</Context>
<Range><StartAt>1</StartAt><Count>20</Count></Range>
<EnableStemming>false</EnableStemming>
<TrimDuplicates>true</TrimDuplicates>
<IgnoreAllNoiseQuery>true</IgnoreAllNoiseQuery>
<ImplicitAndBehavior>true</ImplicitAndBehavior>
<IncludeRelevanceResults>true</IncludeRelevanceResults>
<IncludeSpecialTermResults>true</IncludeSpecialTermResults>
<IncludeHighConfidenceResults>true</IncludeHighConfidenceResults>
</Query></QueryPacket>
urn:Microsoft.Search.Response.Document.Document
120
假的
真的
真的
真的
真的
真的
真的
您不能只搜索任意一列元数据,您需要确保首先对其进行爬网,并使用合理的名称(托管属性)使其可用。有关示例,请参见
另外,如果Published是一个布尔值,我想您可能需要测试“Published”=1,而不是yes