Freigeben über


locationProvider-Element (Search Connector Schema)

Das optionale <locationProvider->-Element gibt den Suchanbieter an, der vom Suchconnector des Webdienstanbieters verwendet werden soll. Dieses Element enthält ein obligatorisches Attribut und ein optionales untergeordnetes Element.

Syntax

<!-- locationProvider -->
    <xs:complexType name="searchConnectorDescriptionType">
        <xs:all>
            ...
            <xs:element name="locationProvider" minOccurs="0">
                <xs:complexType>
                    <xs:all>
                        <xs:element name="propertyBag" type="propertyStoreType" minOccurs="0"/>
                    </xs:all>
                <xs:attribute name="clsid" use="required"/>
                <xs:attribute name="codebase" type="xs:string"/>
            </xs:element>
            ...
        </xs:all>
        <xs:attribute name="publisher" type="xs:string"/>
        <xs:attribute name="product" type="xs:string"/>
    </xs:complexType>

Elementinformationen

Übergeordnetes Element Untergeordnete Elemente
searchConnectorDescriptionType-Element (Search Connector Schema) propertyBag-Element (Search Connector Schema)

 

Attribute

Attribut Beschreibung
@clsid Erforderlich. Die Klassen-ID (CLSID) des Suchanbieters.
codebase Wahlfrei.

 

Bemerkungen

Der @clsid Attributwert für den OpenSearch-Anbieter lautet {48E277F6-4E74-4cd6-BA6F-FA4F42898223}.

Dateisystem- und Protokollhandlerbasierte Suchconnectors können stattdessen das <simpleLocation->-Element verwenden. Wenn <locationProvider-> vorhanden ist, darf es kein <simpleLocation->-Element in der Suchkonnektorbeschreibung geben.

Beispiel für ein locationProvider-Element

<locationProvider clsid="{48E277F6-4E74-4cd6-BA6F-FA4F42898223}">
    <propertyBag>
        <property name="OpenSearchShortName">MSDN</property>
        <property name="OpenSearchQueryTemplate">https://social.msdn.microsoft.com/Search/Feed.aspx?locale=en-US&Query={searchTerms}&format=RSS&StartIndex={startIndex}</property>
        <property name="MaximumResultCount" type="uint32">100</property>
    </propertyBag>
</locationProvider>