简体   繁体   English

避免Google Site Search将页面的某些部分编入索引

[英]Avoid Google Site Search indexing certain parts of page

We use Google Site Search for our site search, and we've had a problem with it indexing the related products snippet, which isn't relevant to the product in question.. 我们使用Google Site Search进行站点搜索,但是在索引与相关产品代码无关的索引时遇到了问题。

<!--googleoff: all-->
--Related products snippet--
<!--googleon: all-->

The issue is, this hasn't been working and now when you search for a title that is in another products related products, you'll get results that are not relevant to the search term. 问题是,这一直没有起作用,现在当您搜索与其他产品相关的产品中的标题时,您会得到与搜索词无关的结果。

How do I prevent google from indexing a certain part of the page for use in our internal site search. 如何防止Google将网页的某些部分编入索引以供我们内部网站搜索使用。

You can't control Googlebot directly but you can drop strong hints. 您无法直接控制Googlebot,但可以丢弃强烈的提示。

A method for this is using HTML elements - the Google bot will see anything in an container as being highly relevant to the page's content. 一种使用HTML元素的方法-Google机器人会在容器中看到与页面内容高度相关的任何内容。 Make sure that these match the page title/header. 确保它们与页面标题/页眉匹配。

Parts of the page you don't want indexed or scraped for custom SERP descriptions you can place in containers. 您不希望为可放入容器中的自定义SERP描述编制索引或抓取页面的某些部分。 This works well with sidebars, cookie policies and boiler plates. 这与侧边栏,cookie策略和样板程序一起使用效果很好。

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

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