0

我正在使用网站的 Google 自定义搜索 api -“yeskantipur.com”。当我在 Google 搜索中搜索“site:yeskantipur.com Sony Xperia Sola”一词时,我得到了很多结果。但是使用 API,我只得到两个结果。自定义搜索不返回正常搜索中第一个位置的结果。相反,显示了第二个结果..

这是输出json的项目:

    "items": [
  {
   "kind": "customsearch#result",
   "title": "Virgin Mobile",
   "htmlTitle": "Virgin Mobile",
   "link": "http://www.yeskantipur.com/index.php?route=product/vendor&vendor_id=57",
   "displayLink": "www.yeskantipur.com",
   "snippet": "SONY XPERIA SOLA. GENERAL 2G Network G.. ... Also known as Sony Ericsson   Xperia Nozomi, Sony Ericsson Arc HD .. 40000.00. Ex Tax: Rs.40,000.00 ...",
   "htmlSnippet": "\u003cb\u003eSONY XPERIA SOLA\u003c/b\u003e. GENERAL 2G Network G.. \u003cb\u003e...\u003c/b\u003e Also known as Sony Ericsson \u003cbr\u003e  Xperia Nozomi, Sony Ericsson Arc HD .. 40000.00. Ex Tax: Rs.40,000.00 \u003cb\u003e...\u003c/b\u003e",
   "cacheId": "Zm5BwsKSGxcJ",
   "formattedUrl": "www.yeskantipur.com/index.php?route=product/vendor...id...",
   "htmlFormattedUrl": "www.yeskantipur.com/index.php?route=product/vendor...id...",
   "pagemap": {
    "cse_image": [
     {
      "src": "http://www.yeskantipur.com/image/cache/data/virgin/sony-x8-182x182.jpg"
     }
    ],
    "cse_thumbnail": [
     {
      "width": "145",
      "height": "145",
      "src": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRh7wPGludHnxspronMl2eITUvTqYjUZ0-KSOgDsiVyvywyCVnYT09KpP8"
     }
    ]
   }
  },
  {
   "kind": "customsearch#result",
   "title": "Sony Ericsson",
   "htmlTitle": "\u003cb\u003eSony\u003c/b\u003e Ericsson",
   "link": "http://www.yeskantipur.com/index.php?route=product/category&path=106",
   "displayLink": "www.yeskantipur.com",
   "snippet": "Sony Xperia Neo L. Also known as Sony MT25i. .. Rs.23,500.00. Ex Tax: Rs.  23,500.00. Add to Bag. Add to Wish List. Add to Compare. Sony Xperai Sola ...",
   "htmlSnippet": "\u003cb\u003eSony Xperia\u003c/b\u003e Neo L. Also known as \u003cb\u003eSony\u003c/b\u003e MT25i. .. Rs.23,500.00. Ex Tax: Rs.\u003cbr\u003e  23,500.00. Add to Bag. Add to Wish List. Add to Compare. \u003cb\u003eSony\u003c/b\u003e Xperai \u003cb\u003eSola\u003c/b\u003e \u003cb\u003e...\u003c/b\u003e",
   "cacheId": "k_N9tKXWitYJ",
   "formattedUrl": "www.yeskantipur.com/index.php?route=product/category&path...",
   "htmlFormattedUrl": "www.yeskantipur.com/index.php?route=product/category&path...",
   "pagemap": {
    "cse_image": [
     {
      "src": "http://www.yeskantipur.com/image/cache/data/ctv-mobile/1-180x180.jpg"
     }
    ],
    "cse_thumbnail": [
     {
      "width": "144",
      "height": "144",
      "src": "https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcRkJbvtpWJeEFS4E9sCXi-tvnFa-20T3YOzF6v6UDhDNYBpep1TWhoaSYMM"
     }
    ]
4

0 回答 0