位置定义文件架构引用

上次修改时间: 2015年3月9日

适用范围: SharePoint Server 2010

此内容由共享创意授权 – 非商业版 2.5 管理。

在 SharePoint Server 搜索中,位置定义 (.osdx) 文件中指定了联合搜索位置配置详细信息。

重要注释重要说明

在 Microsoft Office SharePoint Server 2007 企业级搜索中,位置定义文件的扩展名为 .fld。仍可以在 SharePoint Server 2010 中导入扩展名为 .fld 的位置定义文件,但在创建新的位置定义文件时应使用扩展名 .osdx。

位置定义文件架构将扩展 OpenSearch 说明文档(该链接可能指向英文页面)规范。

语法

<OpenSearchDescription
xmlns=http://a9.com/~/spec/opensearch/1.1/
xmlns:ldf=”https://schemas.microsoft.com/Search/2007/location”>
  <ShortName>string</ShortName>
  <Description>string</Description>
  <Language>LCID</Language>
  <Url type=”application/sharepoint+xml” template={searchTerms}”/>
  <ldf:InternalName>string</ldf:InternalName>
  <ldf:LocationType>LocalSharePoint|OpenSearch|FASTSearch</ldf:LocationType>
  <ldf:Version>version number</ldf:Version>
  <ldf:IsPrefixPattern>true|false</ldf:IsPrefixPattern>
  <ldf:Trigger>string</ldf:Trigger>
  <ldf:ConnectionUrlTemplate>url</ldf:ConnectionUrlTemplate>
  <ldf:MoreLinkTemplate>url</ldf:MoreLinkTemplate>
  <ldf:CreationDate>date</ldf:CreationDate>
  <ldf:LastModifiedDate>date</ldf:LastModifiedDate>
  <ldf:IsRestricted>true|false</ldf:IsRestricted>
  <ldf:AllowedSiteCollectionGuids>string</ldf:AllowedSiteCollectionGuids>
  <ldf:Visualization name="string">
    <Xsl>...</Xsl>
    <Properties>...</Properties>
    <SampleData>string</SampleData>
  </ldf:Visualization>
</OpenSearchDescription>

元素

以下是位置定义文件架构中的元素。

名称

OpenSearchDescription 元素(位置定义)

ShortName 元素(位置定义)

Description 元素(位置定义)

Language 元素(位置定义)

Url 元素(位置定义)

InternalName 元素(位置定义)

LocationType 元素(位置定义)

IsPrefixPattern 元素(位置定义)

IsPrefixPattern 元素(位置定义)

Trigger 元素(位置定义)

ConnectionUrlTemplate 元素(位置定义)

MoreLinkTemplate 元素(位置定义)

CreationDate 元素(位置定义)

LastModifiedDate 元素(位置定义)

IsRestricted 元素(位置定义)

AllowedSiteCollectionGuids 元素(位置定义)

Visualization 元素(位置定义)

Xsl 元素(位置定义)

Properties 元素(位置定义)

SampleData 元素(位置定义)

请参阅

概念

联合搜索概述

其他资源

OpenSearch 规范(该链接可能指向英文页面)