Using a skillset when adding documents to Azure Search Index

别来无恙 提交于 2021-02-05 11:17:08

问题


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).

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?


回答1:


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

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

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



来源:https://stackoverflow.com/questions/54529101/using-a-skillset-when-adding-documents-to-azure-search-index

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!