0

我在这里工作的网站中设置了谷歌搜索:http: //www.atis.com/search.php

如果我将 url 设置为搜索“www.atis.com”以外的任何内容,它可以正常工作,但是当它设置网站 url 时它根本不起作用,用于搜索的 JavaScript 文件位于此处:http ://atis.com /static/js/search_script.js

正如您所看到的,它当前设置为 google 只是为了显示一些结果。

有没有人遇到过这个问题?我发现一些论坛帖子有同样的问题,但没有人回复他们我在搜索谷歌时找不到关于这个问题的任何其他内容。

如果有人能阐明这个问题,那就太棒了。

4

1 回答 1

1

这个网站真的是谷歌索引中的新网站还是最近提交的?如果是这样,它可能会解释为什么你没有得到任何结果。

我可以通过常规搜索看到一些返回的 URL,但我想知道谷歌是否可能没有 100% 完全索引它。我查看了代码和网络调用,从我可以看到底层调用只是不返回任何结果数据,所以理论上没有结果响应实际上是正确的。

这让我怀疑您的代码 (HTML/JS) 没有问题,但无论出于何种原因,Google 都没有提供结果。

如果我们切开所有内容,只查看原始的底层 ajax 调用 URL(如果您的真实 IP,请替换 YOUR_IP_ADDRESS):

https://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=site:www.atis.com&userip=YOUR_IP_ADDRESS

我们得到这个结果:

{"responseData": {"results":[],"cursor":{"moreResultsUrl":"http://www.google.com/search?oe\u003dutf8\u0026ie\u003dutf8\u0026source\u003duds\u0026start\u003d0\u0026hl\u003den-GB\u0026q\u003dsite:www.a-t-i-s.com","searchResultTime":"0.04"}}, "responseDetails": null, "responseStatus": 200}

如果我们尝试另一个名称中包含连字符的站点,以防万一这可能会导致问题:

https://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=site:ba-mro.com&userip=YOUR_IP_ADDRESS

我们得到结果:

{"responseData": {"results":[{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.ba-mro.com/","url":"http://www.ba-mro.com/","visibleUrl":"www.ba-mro.com","cacheUrl":"http://www.google.com/search?q\u003dcache:-mTL9fY7-j4J:www.ba-mro.com","title":"British Airways - Engineering - MRO","titleNoFormatting":"British Airways - Engineering - MRO","content":"British Airways Engineering Maintenance Repair and Overhaul Services - BA   MRO. British Airways Engineering has over 80 years of experience in providing \u003cb\u003e...\u003c/b\u003e"},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.ba-mro.com/baemro/lineMaintenance.shtml","url":"http://www.ba-mro.com/baemro/lineMaintenance.shtml","visibleUrl":"www.ba-mro.com","cacheUrl":"http://www.google.com/search?q\u003dcache:Yik3_muq8ToJ:www.ba-mro.com","title":"British Airways - Engineering - Line Maintenance","titleNoFormatting":"British Airways - Engineering - Line Maintenance","content":"British Airways Engineering Line Maintenance. We are always ready, With over   100 line maintenance stations worldwide, British Airways Engineering and its \u003cb\u003e...\u003c/b\u003e"},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.ba-mro.com/baemro/engStations.shtml","url":"http://www.ba-mro.com/baemro/engStations.shtml","visibleUrl":"www.ba-mro.com","cacheUrl":"http://www.google.com/search?q\u003dcache:mlII7nPYfXkJ:www.ba-mro.com","title":"British Airways - Engineering - Interactive Facilities Map","titleNoFormatting":"British Airways - Engineering - Interactive Facilities Map","content":"British Airways Engineering Interactive Facilities Map. The interactive facilities   map shows all of British Airways Engineering\u0026#39;s facilities and their capabilities \u003cb\u003e...\u003c/b\u003e"},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.ba-mro.com/baemro/engineeringServices.shtml","url":"http://www.ba-mro.com/baemro/engineeringServices.shtml","visibleUrl":"www.ba-mro.com","cacheUrl":"http://www.google.com/search?q\u003dcache:4amHsba6jB4J:www.ba-mro.com","title":"British Airways - Engineering - Engineering and Maintenance Services","titleNoFormatting":"British Airways - Engineering - Engineering and Maintenance Services","content":"British Airways Engineering and Maintenance Services. At British Airways we   listen to our customers and we know that every operator wants a different level of \u003cb\u003e...\u003c/b\u003e"}],"cursor":{"resultCount":"46","pages":[{"start":"0","label":1},{"start":"4","label":2},{"start":"8","label":3},{"start":"12","label":4},{"start":"16","label":5},{"start":"20","label":6},{"start":"24","label":7},{"start":"28","label":8}],"estimatedResultCount":"46","currentPageIndex":0,"moreResultsUrl":"http://www.google.com/search?oe\u003dutf8\u0026ie\u003dutf8\u0026source\u003duds\u0026start\u003d0\u0026hl\u003den-GB\u0026q\u003dsite:ba-mro.com","searchResultTime":"0.09"}}, "responseDetails": null, "responseStatus": 200}

您可能想在 Google AJAX 搜索 API 组中发布问题,因为这可能是错误或其他问题:

https://groups.google.com/forum/?hl=en&fromgroups#!forum/Google-AJAX-Search-API

于 2013-04-12T13:56:18.077 回答