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">

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


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

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

  • 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. 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! 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

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...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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