Omicron Llama

Coding all day, every day.

Programmatically Set ” Allow this site to appear in search results?”

Here’s a quickie – in SharePoint Sites and Lists, you have the option to let the search indexer crawl the content, setting the “Allow this site to appear in search results”.

This is a property on the relevant object called ‘NoCrawl‘. Just set this to true to prevent indexing of the object, or false to allow crawling of the content.

Leave a Reply

Your email address will not be published. Required fields are marked *