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

When you add the noindex class to a div, is all content below it excluded from search crawls? For example, if I had the code below:

<div class="noindex">
   Some Data
   <div> will this be indexed</div>
</div>

Will the second div be indexed?

share|improve this question
1  
It should not be indexed. However I'm waiting for someone to try this ;-) –  Dennis G Mar 27 '12 at 15:40
add comment

1 Answer 1

Accord to this blog entry on msdn blogs, the nested div will not be excluded in SharePoint Search, but also states that it might change.
So my rule is:
- if you don't want it searched then give it the noindex class.
- if you want it searched then place it outside the noindex div.

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.