查找有关 GetNonIndexableItemDetails EWS 操作的信息。
GetNonIndexableItemDetails 操作检索有关无法编制索引的项的详细信息。 这包括(但不限于)项标识符、错误代码、错误说明、尝试为项编制索引时以及有关文件的其他信息。
注意
尽管架构指示可以搜索多个邮箱,但在 Exchange 2013 的初始发布版本中,该服务仅支持获取单个邮箱中不可编制索引的项目的项目详细信息。
Exchange Server 2013 中引入了此操作。
使用 GetNonIndexableItemDetails 操作
GetNonIndexableItemDetails 操作标识无法编制索引的邮箱项目,并提供有关无法为项目编制索引的原因的信息。 在发现搜索期间,不会搜索无法编制索引的项。
GetNonIndexableItemDetails 操作 SOAP 标头
GetNonIndexableItemDetails 操作可以使用下表中列出的 SOAP 标头。
| 标头名称 | 元素 | 说明 |
|---|---|---|
| ManagementRole |
ManagementRole |
标识调用方发出请求所需的服务器角色。 此标头适用于请求。 |
| RequestVersion |
RequestServerVersion |
标识操作请求的架构版本。 此标头适用于请求。 |
| ServerVersion |
ServerVersionInfo |
标识响应请求的服务器版本。 此标头适用于响应。 |
GetNonIndexableItemDetails 操作请求示例:获取无法编制索引的项的详细信息
下面的 GetNonIndexableItemDetails 操作请求示例演示如何请求无法为单个邮箱编制索引的项目的详细信息。 搜索跨主邮箱和存档邮箱执行。
注意
此示例中的所有旧域名都已缩短,以保持可读性。
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013" />
</soap:Header>
<soap:Body >
<m:GetNonIndexableItemDetails>
<m:Mailboxes>
<t:LegacyDN>/o=First Organization/ou=Exchange Administrative Group (FYT)/cn=Recipients/cn=35-Steve</t:LegacyDN>
</m:Mailboxes>
<m:SearchArchiveOnly>false</m:SearchArchiveOnly>
</m:GetNonIndexableItemDetails>
</soap:Body>
</soap:Envelope>
请求 SOAP 正文包含以下元素:
成功的 GetNonIndexableItemDetails 操作响应
以下示例显示了对 GetNonIndexableItemDetails 操作请求的成功响应,以获取无法为单个邮箱编制索引的项目。 此示例中无法编制索引的项是 binaryfile.abc 文件,其格式未知。
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetNonIndexableItemDetailsResponse ResponseClass="Success"
xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<ResponseCode>NoError</ResponseCode>
<NonIndexableItemDetailsResult>
<Items xmlns="http://schemas.microsoft.com/exchange/services/2006/types">
<NonIndexableItemDetail>
<ItemId Id="AQMkAGVmNDAyOQAAAY2fUAAAAA==" ChangeKey="CQAAAA=="/>
<ErrorCode>DocumentParserFailure</ErrorCode>
<ErrorDescription>The document parser encountered a processing error.</ErrorDescription>
<IsPartiallyIndexed>false</IsPartiallyIndexed>
<IsPermanentFailure>true</IsPermanentFailure>
<SortValue>502511175756</SortValue>
<AttemptCount>0</AttemptCount>
<LastAttemptTime>2012-11-15T01:56:11Z</LastAttemptTime>
<AdditionalInfo> 301002 Error parsing document 'exchange://localhost/Attachment/d987b1f4-9aa7-42b3-aa8c-9515a35dfa1a/1f3047d4-c287-41e4-910c-feb70c1a59f0/ef402830-3d33-4a0d-a4e9-d8576900060d/85b83861-0026-418f-8464-be2036696333/502511175756.0/binaryfile.abc'. Document has an undetectable format and will not be parsed.</AdditionalInfo>
</NonIndexableItemDetail>
</Items>
</NonIndexableItemDetailsResult>
</GetNonIndexableItemDetailsResponse>
</s:Body>
</s:Envelope>
响应 SOAP 正文包含以下元素:
GetNonIndexableItemDetails 操作错误响应
以下示例显示了 对 GetNonIndexableItemDetails 操作请求的错误响应。 这是对请求的响应,用于获取无法从多个邮箱编制索引的项目的项目详细信息。
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:ServerVersionInfo MajorVersion="15"
MinorVersion="0"
MajorBuildNumber="526"
MinorBuildNumber="0"
Version="Exchange2013"
xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetNonIndexableItemDetailsResponse ResponseClass="Error" xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<MessageText>Multiple mailboxes is currently not supported, only single mailbox is supported.</MessageText>
<ResponseCode>ErrorInvalidArgument</ResponseCode>
<DescriptiveLinkKey>0</DescriptiveLinkKey>
</GetNonIndexableItemDetailsResponse>
</s:Body>
</s:Envelope>
错误响应 SOAP 正文包含以下元素:
有关 EWS 通用且特定于此操作的其他错误代码,请参阅 ResponseCode。