我们之前在5.0版API中使用了Bing自定义搜索。在过去的几周里,它已经停止了工作。通过https://www.customsearch.ai上的EndPoint接口,任何测试都会返回:
{
"_type": "SearchResponse",
"instrumentation": {
"pingUrlBase": "https://www.bingapis.com/api/ping?IG=19E4BA520EAB45A191FD4CBEE7C72856&CID=151C188292876475082A13A293216596&ID=",
"pageLoadPingUrl": "https://www.bingapis.com/api/ping/pageload?IG=19E4BA520EAB45A191FD4CBEE7C72856&CID=151C188292876475082A13A293216596&Type=Event.CPT&DATA=0"
},
"queryContext": {
"originalQuery": "microsoft"
},
"rankingResponse": {}
}我注意到一个注释说Bing Custom Search现在已经转移到Azure上了,所以我在Azure平台上添加了这个功能(认知服务,API类型: Bing Custom Search API)。它已经部署好了,我得到了2个新的API密钥。使用这两种方法中的任何一种以及7.0 API,仍然会返回与上面相同的结果。
到底怎么回事?API应该可以工作,但包括rankingResponse的响应很奇怪,因为这不是自定义搜索的文档响应。
发布于 2017-10-26 23:52:48
看起来你必须再次创建你的搜索实例。您可以转到customsearch.ai并创建实例。它应该会在"API endpoint“选项卡上给出"customconfig”Id。
https://stackoverflow.com/questions/46827744
复制相似问题