简体   繁体   English

如何在 Google 自定义搜索中排除索引菜单

[英]How to Exclude indexing menu in Google Custom Search

Hi I am using Google Custom Search for searching content in my website.您好,我正在使用 Google 自定义搜索来搜索我网站中的内容。

However when searching a word, google can't exclude the menu from the page, for example http://www.innosia.com/Home/ArticleSearch?q=efore&sitesearch=innosia.com但是在搜索一个词时,google无法从页面中排除菜单,例如http://www.innosia.com/Home/ArticleSearch?q=efore&sitesearch=innosia.com

If you see efore, every page will show up because each page contains a link to Efore page.如果你看到 efore,每个页面都会出现,因为每个页面都包含一个指向 Efore 页面的链接。 How do I tell Google to exclude the link area (left and right menu) and only index the title and content area?如何告诉 Google 排除链接区域(左右菜单)并仅索引标题和内容区域?

I was looking for the same information... It took me a while but I found this in the Google Custom Search documentation.我一直在寻找相同的信息...花了我一段时间,但我在 Google 自定义搜索文档中找到了这个。 This Google article explains exactly how to acheive what you want:这篇谷歌文章准确地解释了如何实现你想要的:

http://support.google.com/customsearch/bin/answer.py?hl=en&answer=2364585&ctx=cb&src=cb&cbid=4iiarmion6fw&cbrank=1 http://support.google.com/customsearch/bin/answer.py?hl=zh-CN&answer=2364585&ctx=cb&src=cb&cbid=4iiarmion6fw&cbrank=1

Enjoy!享受!

The accepted answers (Jeremiah) link referred to adding although this no longer works as explained here: https://support.google.com/programmable-search/thread/16487981?hl=en .接受的答案 (Jeremiah) 链接指的是添加,尽管这不再像此处解释的那样起作用: https : //support.google.com/programmable-search/thread/16487981?hl=en In this answer there is also a workaround to your issue.在此答案中,您的问题也有一个解决方法。

Currently there are no quick easy methods to hide content within a page in google search, only to hide a whole page.目前在谷歌搜索中没有快速简单的方法来隐藏页面内的内容,只能隐藏整个页面。

More reading here: https://www.seroundtable.com/google-no-block-indexing-parts-pages-29144.html更多阅读在这里: https : //www.seroundtable.com/google-no-block-indexing-parts-pages-29144.html

Is there a way to prevent Googlebot from indexing certain parts of a page? 有没有办法阻止 Googlebot 将页面的某些部分编入索引?

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

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