c# - 如何使用 .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 创建一个索引器。
解决方案
这个样本有帮助吗?它正在索引 SQL 数据库,实际上并没有显示 FieldMapping 的示例,但希望它有助于显示您需要的部分。
推荐阅读
- arduino - esp8266 软AP显示错误名称
- angular - 如何在 IDE (WebStorm) 中将 npm 包引用到它的源代码?
- python - 如何使用某些行数据在熊猫中创建小计记录
- pandas - 根据列名和值将数据框中的值替换为另一个数据框中的值
- scikit-learn - 我试图拟合和评分逻辑回归模型但出现错误,任何人都可以帮我解决这个错误
- css - `.prose ol[type="A" s]`最后一个`s`在CSS中是什么意思?
- python - 使用启动文件组合两个节点,结果 cv2.imwrite() 不起作用
- c# - TIA Portal V16 CAx-Operations - Siemens TIA Openness User Group not found
- sql - 如何知道 Mapbasic 中隐藏的 SQL 运算符或函数?
- swift - 如果一周过去了,则增加变量 swift