Djupelement (sökanslutningsschema)

Elementet <djup> anger om sökanslutningsappens omfång ska innehålla underordnade URL:er. De tillåtna värdena är Deep och Shallow. Det här elementet har inga underordnade element och inga attribut.

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>

Elementinformation

Överordnat element Underordnade element
scopeItem-element (schema för sökanslutning)  

 

Anmärkningar

Om djupet är djupt kan användarna bläddra bland eller söka efter objekt på scopeItems URL-nivå eller inom underordnade URL:er.

Exempel

I följande exempel visas ett sökomfång som innehåller C:\FolderA och alla dess underordnade mappar och C:\FolderB men ingen av dess underordnade mappar.

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