Googleon - Googleoff inex tags not working, please help

146 views
Skip to first unread message

Nina

unread,
Aug 5, 2008, 10:44:39 AM8/5/08
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
I am trying to index off a part of html code like this:

<!-- googleon: index -->
<h1><a style="color:black;" href="/webcasts/index.html">featured
webcasts</a></h1>
<c:forEach items="${webcasts}" var="webcast">
<div style="padding-bottom: 15px;">
<div class="webcast_description" style="width: $
{pageContext.request.servletPath == '/WEB-INF/jsp/index.jsp' ? '400' :
'225' }px;">
${webcast.presenterText}<br>
<a href="/resourcecenter/webcasts/webcastDetails.html?id=$
{webcast.webcastId}">${webcast.description}</a><br><br>
Original broadcast on<br>
<fmt:formatDate dateStyle="long" value="${webcast.webcastDate}"/>
</div>
<div >
<c:forEach items="${webcast.webcastSponsors}" var="sponsor">
<a href="${sponsor.url}" target="_new">
<img class="webcast_img" src="http://images.dennet.com/webcast/
sponsors/${sponsor.image.fileName}" width="${sponsor.image.pixelWidth
> 110 ? '110': sponsor.image.pixelWidth}" border="0">
</a><br>
</c:forEach>
</div>
</div>
</c:forEach>
<div style="text-align: right; clear: right;">
<a href="/webcasts/index.html">View all Webcasts<img src="/images/
more.gif" border="0" /></a>
</div>
<!-- googleoff: index -->



Even after reindexing the pages, it is not exclusing this part of the
code from the search. Do you see any reason why it is not excluding
this? Do I need to do anything different? Thanks for any help.

Marcelo

unread,
Aug 5, 2008, 12:47:50 PM8/5/08
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hello,
You have reversed the tags.

Words between the tags are not indexed as occurring on the current
page.

fish <!--googleoff: index-->shark<!--googleon: index-->mackerel

The words fish and mackerel are indexed for this page, but the
occurrence of shark is not indexed.
This page could appear in search results for the term shark only if
the word appears elsewhere on the page or in anchortext for links to
the page.
Hyperlinks that appear within these tags are followed.

Nina

unread,
Aug 5, 2008, 3:58:01 PM8/5/08
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Thanks for the answer. Sorry, my mistake when typing it. I did do the
other way round with no success. Since images and hrefs appear in this
block of code, will that affect the GSA by any chance? I have tried
reindexing a lot of times, but everytime the content between the tags
does appear in the serach results. Does anybody have any other
suggestions? Thanks in advance.

<!-- googleoff: index -->
<!-- googleon: index -->

bria...@gmail.com

unread,
Aug 6, 2008, 4:11:17 AM8/6/08
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
Hi Nina,

Can you give more details on exactly what you are trying to do? The
googleoff:index will prevent the words after the googleoff tag from
being indexed which means if somebody searches for one of those words,
that page will not return. It does not prevent it from being in the
snippets. Nor does it prevent links from being followed.

Are you trying to prevent so hrefs from being followed? If so, your
best bet would be to use robots metatags or Do Not Crawl patterns in
the GSA.

Brian

B.A.

unread,
Aug 6, 2008, 7:52:33 AM8/6/08
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini

Hi Nina,

As Brian pointed out, googleoff:index will not prevent that part of
the page to be displayed in snippets, why don't you try with just
googleoff without :index ?

Nina

unread,
Aug 6, 2008, 7:56:57 AM8/6/08
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
I am still confused as to when exactly I can use the index tags? Here
is the source code I am trying to googleoff. Now, I do not want
"Photonics" or "Fundamentals of Photonics" or "August 20"or any other
words/snippets to appear in the search results. I do not care about
the href itself. I am only concerned about the words that appear in
the search results. Which would be my best bet? Should I just use <!--
googleoff: all --> or is it better to use <!-- googleoff:snippet -->
tags. Thanks again for the help.
With the below code, when I search for "webcasts", it still returns me
this in the search results. I would think the index tags should work
here. But, it did not.

<!-- googleoff: index -->
<div style="width:100%;">
<div class="genericBox" id="featuredWebcasts" style="background-
image:none; background-repeat: none;">
<div class="genericBoxContent">
<h1><a style="color:black;" href="/webcasts/index.html">featured
webcasts</a></h1>
<div style="padding-bottom: 15px;">
<div class="webcast_description" style="width: 225px;">
<br>
<a href="/resourcecenter/webcasts/webcastDetails.html?
id=720">Fundamentals of Photonics: Photovoltaics</a><br><br>Original
broadcast on<br> August 20, 2008
</div>
<div >
<a href="http://www.aerotech.com" target="_new">
<img class="webcast_img" src="http://images.dennet.com/webcast/
sponsors/226034.jpg" width="110" border="0">
</a>
<br>
<a href="http://www.dilas.com/" target="_new">
<img class="webcast_img" src="http://images.dennet.com/webcast/
sponsors/290007.jpg" width="110" border="0">
</a>
<br>
<a href="http://www.newport.com" target="_new">
<img class="webcast_img" src="http://images.dennet.com/webcast/
sponsors/247743.jpg" width="110" border="0">
</a><br>
</div>
</div>
</div>
</div>
<!-- googleon: index -->

> > > > this? Do I need to do anything different? Thanks for any help.- Hide quoted text -
>
> - Show quoted text -

Nina

unread,
Aug 6, 2008, 8:57:17 AM8/6/08
to Google Search Appliance/Google Mini - Google Search Appliance/Google Mini
ok, finally I think I understood my problem. It is just that I have to
use the "all" tag instead of the "index" tag. Trying to reindex and
see if it works (finger crossed!)
> > - Show quoted text -- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages