简体   繁体   English

使用Google作为搜索引擎或自定义搜索引擎

[英]Use google as a search engine or a custom search engine

This is my site: My Site 这是我的网站: 我的网站

I want to know for the search bar placed in the site (made with Bootstrap), do I code and make a search engine myself (I know how to do that, I don't think I need help on that) or do I use Google to search within my website and give results in my website itself in the body of the container by retaining the header and footer. 我想知道放置在网站上的搜索栏(由Bootstrap制作),我自己编写代码并创建搜索引擎(我知道该怎么做,我认为我不需要这方面的帮助)还是我使用Google可以在我的网站内进行搜索,并通过保留页眉和页脚在容器的正文中在我的网站中给出结果。 I have seen my University website search engine is powered by google. 我已经看到我的大学网站搜索引擎由google提供支持。

If the latter is a good option, then am I allowed to do that? 如果后者是一个不错的选择,那么我可以这样做吗? Is it free in the first place? 首先免费吗? Some claim it is free while some claim it's not. 有些人声称它是免费的,而有些人则声称不是免费的。 So I want to get it clarified. 所以我想澄清一下。

I only have user profiles stored, very soon I might have some notifications, announcements, blogs, faqs, etc. in my database. 我只存储了用户个人资料,很快我的数据库中可能会有一些通知,公告,博客,常见问题解答等。 So the data is not that huge or anything but it's somewhat big. 因此,数据不是那么大,也不是什么,但它确实有些大。

Do the following: 请执行下列操作:

  • Google "Google CSE" 谷歌“谷歌CSE”
  • Sign up for it 报名参加
  • Give all the information they ask for 提供他们要求的所有信息
  • Try out difference templates and styles and check what suits you 尝试不同的模板和样式,并检查什么适合您

If you want your own search engine, implementing it would be hard because you are new to it, and with content being added every now and then you might have to update things in the form of keywords. 如果您想要自己的搜索引擎,那么实施它会很困难,因为它是您的新手,并且不时添加内容,您可能不得不以关键字的形式更新内容。 So Google is a good option. 因此Google是一个不错的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM