Pergunta

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?

Foi útil?

Solução

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

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

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a sharepoint.stackexchange
scroll top