0

我正在将Azure搜索与Blob存储索引器配合使用。我看到失败的执行历史: -Azure Blob存储索引器在映像上失败

[ 
    { 
     "key": null, 
     "errorMessage": "Document 'https://mystorage.blob.core.windows.net/my-documents/Document/Repository/F/AD/LO/LO-min-0002-00.png' has unsupported content type 'image/png'" 
    } 
] 

这是否失败在存储引起的其他文件(与支持的内容类型)不被索引?

回答

2

是的,默认情况下1个失败的文档将停止索引。如果您偶尔有不受支持的文档,则可以增加该限制。您可以将AzureSearch_Skip元数据添加到您不想索引的斑点,如here所述。

UPDATE您还可以跳过所有带有索引的文件扩展名的斑点 - 有关详细信息,请参见here。例如,这允许您轻松跳过所有的.jpeg或.png文件。

另外,请投票支持这一UserVoice的建议:Blob indexer should be able to skip unsupported content types instead of treating them as errors

+0

谢谢,这是一个不错的解决办法。你怎么知道支持的内容类型是什么? – Mick

+0

[本文](https://azure.microsoft.com/zh-cn/documentation/articles/search-howto-indexing-azure-blob-storage/)中列出了支持的内容类型列表。其他所有人都不受支持。请通过UserVoice通知我们您希望看到哪些支持的其他格式。 –