Skip to content

Record / Memo

Google カスタム検索で指定したURLが検索対象にならないのは、「as_dt」パラメーターが原因

+as_dt DescriptionOptional. The as_dt parameter controls whether to include or exclude results from the site n

+as_dt

Description

Optional. The as_dt parameter controls whether to include or exclude results from the site named in the as_sitesearch parameter. The values i and e denote inclusion and exclusion respectively.

Examples

as_dt=i,as_dt=e

+as_sitesearch

Description

Optional. The as_sitesearch parameter allows you to specify that all search results should be pages from a given site. By setting the as_dt parameter, you can also use it to exclude pages from a given site from your search resutls.

Examples

q=vacation&as_sitesearch=www.google.com

as_dt は as_sitesearch と組み合わせて使う

www.7-2.jp/e 以外を検索対象とする

e” name=”as_dt”

www.7-2.jp/e のみを検索対象とする

i” name=”as_dt”

参考

Google カスタム検索

http://www.crystal-creation.com/web-appli/technical-information/search-engine/google/site-search/custom-search.htm

Custom Search Element V1

http://www.crystal-creation.com/web-appli/technical-information/web-api/google/search/web/custom-search/

Custom Search Element V2

http://www.crystal-creation.com/web-appli/technical-information/web-api/google/search/web/custom-search/v2.htm

リンク型カスタム検索エンジン

https://www.google.co.jp/cse/docs/cref.html

https://developers.google.com/custom-search/docs/js/cselement-devguide

https://developers.google.com/custom-search/docs/js/cselement-reference

Back to Discoveries