Bing Web Search仅显示我的域的结果

时间:2017-07-28 08:18:48

标签: microsoft-cognitive bing-api bing-search

使用Bing Web Search API,我只需要为我的域筛选结果,例如查询:

https://api.cognitive.microsoft.com/bing/v7.0/search?q=site:mysite.com+myquery

但是在结果中我不仅收到了mysite.com的结果,还收到了维基百科和其他网站的结果。 我如何仅为我的域搜索结果? Bing Custom Search对我不起作用,因为我有超过10k的交易

2 个答案:

答案 0 :(得分:1)

Your website is probably not known or indexed by Bing. Since you use Bing Search API, not a custom indexing service or search across a sitemap. The actual Bing website will need to be able to find your site. Since it doesn't, this triggers the default behavior of returning as relevant as possible results.

This behavior is valid for urls such as the following:

https://api.cognitive.microsoft.com/bing/v7.0/search?q=microsoft+site:notAnIndexedWebsite.com

Formatting wise, there is multiple options, as seen here. None of it is a problem in this case.

答案 1 :(得分:0)

如果有帮助(https://www.customsearch.ai/),您可以尝试Bing自定义搜索,特别是现在在GA中。它还提供了通过网站管理员在Bing索引中抓取您的网页的选项(如果它们尚未被抓取)。这应该确保您只从您的网站获得结果。