如何在我的网站中添加谷歌搜索?

发布于 2024-10-08 10:14:19 字数 233 浏览 1 评论 0原文

我想在我的网站中添加 Google 搜索,以便它仅搜索我网站的页面,并在我的网站页面内提供结果。

我在这里找到了谷歌搜索网站:http://www.google.com/sitesearch/但是好像是付费的?谷歌网站搜索现在是付费产品吗?或者它是免费提供的?

请帮忙澄清对谷歌搜索网站的疑问。

I want to add Google search in my website, so that it will search the pages from only my website and will provide result inside my website page.

I found the google search for websites here: http://www.google.com/sitesearch/ but it seems its paid? is google search fro websites is paid product now? or its available for free?

Please help to clarify doubts about google search for website.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

九歌凝 2024-10-15 10:14:19

使用 Google 自定义搜索。有两个版本:1) 标准版(免费)和 2) 站点搜索(付费)。

编辑:

这里是 Web 搜索 API 的链接。

Use Google custom search. There are two editions: 1) Standard (Free) and 2) Site Search (Paid).

EDIT:

Here is a link of Web Search API.

丢了幸福的猪 2024-10-15 10:14:19

添加一个搜索框,该搜索框使用 site: 参数构造 URL,例如:

http://www.google.co.uk/search?q=my_search_string+site:www.slashdot.org

这将在 slasdot 上搜索“my_search_string”并返回默认的 Google 页面。

付费服务可以让您摆脱谷歌广告,自定义结果并用您自己的页眉和页脚等来呈现它们。

Add a search box that constructs a URL with a site: parameter, such as:

http://www.google.co.uk/search?q=my_search_string+site:www.slashdot.org

That'll search for 'my_search_string' on slasdot and return the default google page.

The paid-for services let you get out of google ads, customise the results and present them with your own headers and footers etc.

平定天下 2024-10-15 10:14:19

一种(绝对免费)选项是使用框架或类似框架嵌入 Google 搜索页面。

http://www.google.co.uk/search?q=site%3Arushyo.com+stack+overflow

但远非理想。我确信这个问题有更优雅的解决方案。

One (definitely free) option is to embed the Google search page using a frame or similar.

http://www.google.co.uk/search?q=site%3Arushyo.com+stack+overflow

Far from ideal though. I'm sure there are more elegant solutions to the problem.

狼性发作 2024-10-15 10:14:19

谷歌搜索是完全免费的。您可以使用谷歌自定义搜索。您可以在 Google 搜索控制台中找到 google cse

google search is completely free. You can use google custom search. You can find google cse in Google search console

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文