Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SearchIndexerIndexProjectionSelector 构造函数

定义

初始化 SearchIndexerIndexProjectionSelector 的新实例。

public SearchIndexerIndexProjectionSelector (string targetIndexName, string parentKeyFieldName, string sourceContext, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Indexes.Models.InputFieldMappingEntry> mappings);
new Azure.Search.Documents.Indexes.Models.SearchIndexerIndexProjectionSelector : string * string * string * seq<Azure.Search.Documents.Indexes.Models.InputFieldMappingEntry> -> Azure.Search.Documents.Indexes.Models.SearchIndexerIndexProjectionSelector
Public Sub New (targetIndexName As String, parentKeyFieldName As String, sourceContext As String, mappings As IEnumerable(Of InputFieldMappingEntry))

参数

targetIndexName
String

要投影到的搜索索引的名称。 必须具有具有“关键字 (keyword) ”分析器集的键字段。

parentKeyFieldName
String

搜索索引中要将父文档的键值映射到的字段的名称。 必须是可筛选的字符串字段,而不是键字段。

sourceContext
String

投影的源上下文。 表示将文档拆分为多个子文档的基数。

mappings
IEnumerable<InputFieldMappingEntry>

投影的映射,或者应将哪个源映射到目标索引中的哪个字段。

例外

targetIndexNameparentKeyFieldNamesourceContextmappings 为 null。

适用于