在 Azure 搜索服务中,metadata_storage_path 是错误的

In Azure Search Services, metadata_storage_path is wrong

我已经通过 Azure 门户使用索引器为 Azure 搜索服务索引中的 blob 容器的内容编制了索引。

当 运行 在 Azure 门户中查询时,大多数文档都有正确的 metadata_storage_path 但很少有不正确的。他们的名字后面有一个额外的字符,通常是“5”。 Azure 似乎在 metadata_storage_path.

的 base64 表示中附加了一个“1”

因此,metadata_storage_path的值并没有反映文件的正确位置。它在末尾多了一个“5”。

如果有人想知道,这些文件没有被更改、删除或任何东西。

有没有人注意到类似的事情?有已知的解决方案吗?

您很可能没有使用 Azure 搜索 blob 索引器用于对路径进行编码的相同 base64 解码算法。如果您使用完整的 .NET Framework,请使用 HttpServerUtility.UrlTokenDecode. If you're using .NET Core, see