depth 요소(검색 커넥터 스키마)

<depth> 요소는 검색 커넥터의 scope 자식 URL을 포함할지 여부를 지정합니다. 허용되는 값은 DeepShallow입니다. 이 요소에는 자식 요소가 없고 특성이 없습니다.

Syntax

<!-- depth -->
    <xs:complexType name="searchConnectorDescriptionType">
        <xs:all>
        ...
        <xs:element name="scope" minOccurs="0">
            <xs:complexType>
                <xs:sequence minOccurs="0">
                    <xs:element name="scopeItem" maxOccurs="unbounded">
                        <xs:complexType>
                            <xs:all>
                                ...
                                <xs:element name="depth" default="Shallow" minOccurs="0">
                                    <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                            <xs:enumeration value="Shallow"/>
                                            <xs:enumeration value="Deep"/>
                                        </xs:restriction>
                                    </xs:simpleType>
                                </xs:element>
                                ...
                            </xs:all>
                        </xs:complexType>
                    </xs:element>
                </xs:sequence>
            </xs:complexType>
        </xs:element>
        ...
        </xs:all>
        <xs:attribute name="publisher" type="xs:string"/>
        <xs:attribute name="product" type="xs:string"/>
    </xs:complexType>

요소 정보

부모 요소 자식 요소
scopeItem 요소(Search 커넥터 스키마)  

 

설명

깊이가 깊은 경우 사용자는 scopeItem의 URL 수준 또는 모든 자식 URL 내에서 항목을 찾아보거나 검색할 수 있습니다.

예제

다음 예제에서는 C:\FolderA 및 모든 자식 폴더와 C:\FolderB를 포함하지만 해당 자식 폴더는 포함하지 않는 검색 scope 보여 줍니다.

<?xml version="1.0" encoding="UTF-8"?>
<searchConnectorDescription xmlns="http://schemas.microsoft.com/windows/2009/searchConnector">
    ...
    <scope>
        <scopeItem>
            <mode>Include</mode>
            <depth>Deep</depth>
            <url>C:\FolderA</url>
        </scopeItem>
        <scopeItem>
            <mode>Include</mode>
            <depth>Shallow</depth>
            <url>C:\FolderB</url>
        </scopeItem>
    </scope>
    ...
</searchConnectionDescription>