我向网站添加了 Google 自定义搜索引擎。标题中有一个搜索框。它还显示经常搜索的关键字列表。由于标题在所有页面上都可用,因此搜索引擎也会根据这些关键字对所有页面进行索引。这是错误的。我搜索并将 class='nocontent'
添加到相关 div
中。现在的问题是:
我想清除自定义搜索引擎的缓存并强制它重新索引页面。怎么做呢?我尝试删除该网站并再次添加它,但它不起作用。
I added a Google Custom Search Engine to a site. There is a search box in the header. It also shows the list of frequently searched keywords. Since, the header was available on all pages, the search engine index all the pages according to these keywords too. This was wrong. I searched and added class='nocontent'
to the relevant div
. Now the question:
I want the clear the cache of my custom search engine and force it to reindex pages. How to do that? I have tried to remove the site and add it again but it does not work.
发布评论
评论(1)
您可能需要使用“按需索引”功能来请求为您的 CSE 更新索引。
http://code.google.com/apis/customsearch/docs/indexing.html
还有几个包含相关信息的附加帮助页面。我无法在这里发布任何进一步的链接(因为我在 Stack Overflow 上缺乏足够的代表),所以我将告诉您如何找到这些页面:
在上面链接的页面上,在侧边栏的“其他资源”下,单击“帮助中心” ;然后单击“如何”,单击“搜索结果”,单击“索引”,然后单击列出的链接。
注意:
目前,自定义搜索的 class="nocontent" 排除功能在某些情况下可能还无法工作。请参阅自定义搜索论坛中的此讨论(稍后再次检查是否有更新):
https://groups.google.com/a/googleproductforums.com/d/msg/customsearch/Rz63MiyoU6I/_tSZ_g_9D_AJ
You may want to use the "On-Demand Indexing" feature to request updated indexing for your CSE.
http://code.google.com/apis/customsearch/docs/indexing.html
There are several additional help pages with related information. I cannot post any further links here (because I lack sufficient rep on Stack Overflow), so I'll tell you how to find those pages:
On the page linked above, under "Other Resources" in the sidebar, click "Help Center"; then click "How to", click "Search results", click "Indexing", and follow the listed links.
NOTE:
At this time the class="nocontent" exclusion feature of Custom Search may not yet work in some cases. Please see this discussion in the Custom Search forum (and check there again later for any updates):
https://groups.google.com/a/googleproductforums.com/d/msg/customsearch/Rz63MiyoU6I/_tSZ_g_9D_AJ