问题
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