首页 > 解决方案 > 如何使用 .net SDK (c#) 创建 Azure 搜索索引器以从 Azure Blob 存储中提取数据

问题描述

我阅读了有关 Indexer 的文档,并在下面找到了一个方法

public Indexer (string name, string dataSourceName, string targetIndexName, string description = null, string skillsetName = null, Microsoft.Azure.Search.Models.IndexingSchedule schedule = null, Microsoft.Azure.Search.Models.IndexingParameters parameters = null, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.FieldMapping> fieldMappings = null, System.Collections.Generic.IList<Microsoft.Azure.Search.Models.FieldMapping> outputFieldMappings = null, Nullable<bool> isDisabled = null, string eTag = null);

谁能告诉我如何fieldMappings在方法中指定参数?或者给我任何其他代码示例来创建具有给定数据源和索引的索引器?

我创建了一个索引和数据源,但在 Azure 中创建索引器以搜索 blob 存储数据时遇到了困难。我希望使用 c# .NET SDK 创建一个索引器。

标签: c#azure-cognitive-searchazure-blob-storageindexerazure-search-.net-sdk

解决方案


这个样本有帮助吗?它正在索引 SQL 数据库,实际上并没有显示 FieldMapping 的示例,但希望它有助于显示您需要的部分。


推荐阅读