JavaScript /谷歌搜索,我的网址没有其他人工作

时间:2013-04-12 08:55:59

标签: javascript html google-api

我在网站上设置了谷歌搜索:http://www.a-t-i-s.com/search.php

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

正如你可以看到它目前设置为谷歌,所以我可以得到一些结果。

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

如果有人能够解决那些令人敬畏的问题。

1 个答案:

答案 0 :(得分:1)

此网站在Google索引中是否真的是新的或最近提交的?如果它可能会解释为什么你没有得到任何结果。

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

这让我怀疑你的代码(HTML / JS)是否正常,但无论出于什么原因,Google都没有提供结果。

如果我们切断所有内容,只需查看原始基础ajax调用URL(如果您的真实IP,则替换YOUR_IP_ADDRESS):

https://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=site:www.a-t-i-s.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 Search API组中发布问题,因为这可能是错误或其他问题:

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