【问题标题】:Why does Bing (and Bing Custom Search) return no results for certain Wikipedia pages?为什么必应(和必应自定义搜索)不返回某些 Wikipedia 页面的结果?
【发布时间】:2020-05-04 19:06:35
【问题描述】:

我正在尝试在某些 Wikipedia 页面上使用 Bing 自定义搜索。但是,我发现有许多页面在 Bing 自定义搜索(或 Bing 搜索)中没有返回任何结果。

例如,您可以在 Bing 中搜索 site:https://en.wikipedia.org/wiki/George_Washington name 并获取该网页的回复。但是,如果您从以下任何犬种名称中进行选择(实际上几乎是此列表中的任何犬种:https://en.wikipedia.org/wiki/List_of_dog_breeds):

https://wikipedia.org/wiki/Wire_Fox_Terrier
https://wikipedia.org/wiki/Kishu
https://wikipedia.org/wiki/English_Cocker_Spaniel

作为站点,搜索site:{site_from_list_above} dog(例如site:https://wikipedia.org/wiki/Wire_Fox_Terrier dog)没有结果。是我搜索错了,还是 Bing 没有缓存这些页面?

【问题讨论】:

    标签: wikipedia bing bing-api bing-custom-search


    【解决方案1】:

    回答我自己的问题:在与 Bing 支持人员交谈并亲自使用 URL 后,我发现有两个问题:

    1. 网址不需要重定向,因为https://wikipedia.org/wiki/Kishu 会将您带到https://en.wikipedia.org/wiki/Kishu
    2. 其中包含特殊字符的url(例如https://en.wikipedia.org/wiki/Chihuahua_(dog)需要替换(这意味着“(”与“%28”和“)”与“%29”等)。更多关于转义的细节可以在这里找到:https://www.w3schools.com/tags/ref_urlencode.asp

    希望这对其他人有帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-03
      • 2023-03-23
      • 1970-01-01
      • 1970-01-01
      • 2018-04-25
      相关资源
      最近更新 更多