Derinlik öğesi (arama bağlayıcısı şeması)

<derinlik> öğesi, arama bağlayıcısının kapsamının alt URL'leri içerip içermeymeyeceğini belirtir. İzin verilen değerler Deep ve Shallow. Bu öğenin alt öğesi ve özniteliği yok.

Sözdizimi

<!-- 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>

Öğe bilgileri

Üst Öğe Alt Öğeler
scopeItem Öğesi (Arama Bağlayıcısı Şeması)  

 

Açıklamalar

Derinlik derinse, kullanıcılar scopeItem'in URL düzeyinde veya herhangi bir alt URL'nin içindeki öğelere göz atabilir veya arama yapabilir.

Örnek

Aşağıdaki örnekte, C:\FolderA ve tüm alt klasörlerini ve C:\FolderB'yi içeren ancak alt klasörlerinden hiçbirinin olmayan bir arama kapsamı gösterilmektedir.

<?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>