将文档添加到Azure搜索索引时使用技能组 [英] Using a skillset when adding documents to Azure Search Index

查看:68
本文介绍了将文档添加到Azure搜索索引时使用技能组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用索引器从Cosmos DB集合导入数据,我能够成功地将技能组(关键字提取)用于列.但是,我最终还是想使用.NET SDK的DocumentsOperationsExtensions的IndexAsync()方法将文档添加到索引中(因为我已经在Cosmos DB集合上具有更改Feed侦听器,并且想要利用它而不是运行定期的索引器来查询Cosmos DB).

I was able to successfully use a skillset (keyword extraction) for a column using an Indexer importing data from a Cosmos DB collection. However I want to eventually use the .NET SDK's DocumentsOperationsExtensions's IndexAsync() method to add documents to the index ( as I already have a change feed listener on the Cosmos DB collection and want to leverage that instead of running a periodic indexer querying Cosmos DB).

但是我不知道如何使用SDK方法(甚至是REST API之一-

But I don't see how I can specify the skillset to be used when adding the document to the index using the SDK approach (or even the REST API one - https://docs.microsoft.com/en-us/rest/api/searchservice/addupdate-or-delete-documents). Is this a supported scenario? Or are we obligated to use an Indexer if we have to leverage skillsets?

推荐答案

或者如果我们必须利用技能组,我们是否有义务使用索引器?

Or are we obligated to use an Indexer if we have to leverage skillsets?

正确.技能集和认知搜索功能只能通过Indexer机制使用(如

Correct. Skillsets and cognitive search functionality are only available via the Indexer mechanism (as stated in the docs here).

它们不能通过 Index API(SDK或REST)获得.仅供参考-您仍然可以通过

They are not available via the Index API (SDK or REST). FYI - you can still perform Indexer and Skillset management (if you do choose to go that route) via the preview SDK

这篇关于将文档添加到Azure搜索索引时使用技能组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆