如何在google自定义搜索API中的siteSearch上指定多个值?

sup*_*oon 7 google-custom-search

我正在使用谷歌自定义搜索API并希望使用siteSearch创建搜索:

https://www.googleapis.com/customsearch/v1?key=k&cx=cx&q=cocos2d&siteSearch=www.cocos2d-iphone.org&siteSearchFilter=i

and it works fine (returns all the result only from the given site).

Then I want to specify TWO sites to search so I tried to change the :
siteSearch=www.cocos2d-iphone.org

to 
siteSearch=www.cocos2d-iphone.org www.XXXXXXXX.org
siteSearch=www.cocos2d-iphone.org|www.XXXXXXXX.org
siteSearch=www.cocos2d-iphone.org||www.XXXXXXXX.org

but none of these works.

hope someone can help here, thanks:)
Run Code Online (Sandbox Code Playgroud)

小智 5

目前,我不相信您可以通过查询参数siteSearch指定更多站点。

不过,您可以在以下位置配置您的自定义搜索引擎:https : //www.google.com/cse/manage/all 在“搜索站点”区域。

这也适用于排除,您可以在这里阅读:https : //support.google.com/customsearch/bin/answer.py?hl=zh_CN&answer=2631038&topic=2601037&ctx=topic