可选 <属性> 元素指定搜索连接器使用的属性。 这些属性特定于此搜索连接器,因此没有要使用的预定义名称集。 此元素没有子元素。
语法
<!-- property for propertyStore element -->
<xs:element name="propertyBag" type="propertyStoreType" minOccurs="0">
<xs:element name="property" minOccurs="0" maxOccurrs="unbounded">
<xs:complexType>
<xs:complexContent>
<xs:extension base="xs:anyType">
<xs:attribute name="name" type="canonical-name" use="required"/>
<xs:attribute name="type"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:element>
元素信息
| Parent 元素 | 子元素 |
|---|---|
| propertyStore 元素(搜索连接器架构) |
属性
| 属性 | 描述 | 值 |
|---|---|---|
| 名字 | 公共。 必填。 属性的显示名称。 | 违约 |
| 类型 | 公共。 必填。 属性的类型。 | 任意:默认值。 属性子系统不会强制该值。 getPropertyType 将返回VT_NULL。
|
| 架构 | 公共。 自选。 定义属性的架构。 | 违约 |
言论
OpenSearch 搜索连接器可以使用 OpenSearchHTMLRolloverTemplate 属性。 此属性标识按照 OpenSearch 模板约定设置格式的模板。 当用户单击命令栏中的“网站搜索”按钮时,将使用 OpenSearchHTMLRolloverTemplate 模板。
例
以下示例显示了一个具有两个 <属性> 元素的 <propertyStore> 元素。
<propertyStore>
<property name="OpenSearchHTMLRolloverTemplate">https://www.adventureworks.com/Search/?Query={searchTerms}</property>
<property name="isExternal" type="boolean">true</property>
</propertyStore>