搜索引擎如何识别网站上的搜索框? [英] How do search engines recognize search boxes on websites?

查看:48
本文介绍了搜索引擎如何识别网站上的搜索框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到很多时候当我在 Google 上搜索某些内容时,Google 会自动使用相关网站的搜索功能并将网站搜索的结果返回,就像它只是另一个 URL.

I've noticed that a lot of the time when i search something on Google, Google automatically uses the search function of relevant websites and return the result of the website search as if it was just another URL.

我如何让 Google 和其他搜索引擎知道我自己网站上的搜索框是什么以及 Open Search 与它有什么关系?

How do i let Google and other search engines know what is the search box on my own website and does Open Search has anything to do with it?

推荐答案

你是说通过 google chrome omnibar 的站点搜索功能吗?

do you maybe mean the site search function via the google chrome omnibar?

要到达那里,您只需要拥有一个

to get there you just need to have a

  • 方法类型为 GET 的表单
  • 输入类型文本元素
  • 提交按钮
  • 在您域的根页面上

如果用户直接转到您的根页面并在那里搜索某些内容,Google 会了解此表单并将其添加到可通过 omnibar(谷歌浏览器地址栏)访问的搜索引擎中.

if users go directly to your root page and search something there, google learns of this form and adds it to the search engines accessible via the omnibar (the google chrome address bar).

你是这个意思吗?

这篇关于搜索引擎如何识别网站上的搜索框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆