我遇到了一個場景,我想索引存在於blob存儲中的所有文件。 但是,在場景中,如果在Blob中上載的文件受密碼保護,索引器將失敗,並且索引器現在無法索引其餘文件。Azure Blob索引器問題
[
{
"key": null,
"errorMessage": "Error processing blob 'url' with content type ''. Status:422, error: "
}
]
有沒有辦法忽略密碼保護的文件或一種方式繼續即使在一些文件中的錯誤索引過程。
你能分享你的索引器定義嗎? –
'索引索引=新的索引(){ 名稱 = indexerName, 的datasourcename =名稱, TargetIndexName = INDEXNAME, 附表=新IndexingSchedule(){ 間隔 = System.TimeSpan.FromMinutes(Convert.ToDouble(ConfigurationManager中。 AppSettings [「indexrefreshtime」])) } };' – user1500960
indexer.Parameters = new IndexingParameters()。ExcludeFileNameExtensions(ConfigurationManager.AppSettings [「filetoignore」] .Split(',')); indexer.FieldMappings = new List(); indexer.FieldMappings.Add(新Microsoft.Azure.Search.Models.FieldMapping() { SourceFieldName = 「metadata_storage_path」, MappingFunction = Microsoft.Azure.Search.Models.FieldMappingFunction.Base64Encode() }); –
user1500960