Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there any way to mark parts of a page not to be indexed by Microsoft Search Server Express 2010?

For example all pages have footer, and I wan't be able to do something like

<div class="no-index">
    footer
</div>

And contents of this block should not be indexed. Is it possible?

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

That's how you do it, but use the class noindex instead, like this:

<div class="noindex"> footer </div>

share|improve this answer
    
if this div contains links, search server won't follow them in this case? –  Sly May 23 '11 at 13:21
1  
I don't think so, but I'm not 100% sure. –  Wictor Wilen MCA MCM MVP May 23 '11 at 13:29
    
Just tried it. All content is skipped and if it contains links to other pages they are not get crawled :( –  Sly May 23 '11 at 13:30
    
Then it works as I assumed, and as I expected. Great to know! –  Wictor Wilen MCA MCM MVP May 23 '11 at 13:33
    
How do you think, div class="noindex follow" will forse search server to follow links inside it? –  Sly May 23 '11 at 17:07
show 2 more comments

In addition to Wictor's answer there are some rumors on the internet that you have to make sure you apply the "noindex" to nested DIV's as well. Just putting a "noindex" on the parent node isn't enough to make sure all child nodes are ignored as well. Each child node seems to be re-evaluated for the "noindex" class, according to various sources: http://sharedknowledgepoint.com/2011/09/12/exclude-page-content-from-search-crawler/ http://blogs.msdn.com/b/markarend/archive/2010/06/07/control-search-indexing-crawling-within-a-page-with-noindex.aspx

I'm currently working on a FAST implementation (2010) and the above doesn't seem to apply there. I can put "noindex" on a top node and it will ignore everything below. Maybe it's a SharePoint/Search Server issue...

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.