Forum Discussion
Enable SP Site content to be searchable programmatically
Hello Everyone,
Can you please let me know if there is any API (CSOM / PowerShell) that will help us in accessing the Search property setting for enabling/disabling the site content to be available for Search?
Thanks & Regards,
Bhanu
- Hi Bhanu,
I think you are looking for the "NoCrawl" property which should be set to false in order to get all web content indexed by search. This property should be available via CSOM for Web and List/Lib objects.
Best
Bjoern
3 Replies
- Björn NettingsmeierBrass ContributorHi Bhanu,
I think you are looking for the "NoCrawl" property which should be set to false in order to get all web content indexed by search. This property should be available via CSOM for Web and List/Lib objects.
Best
Bjoern- bhanu chinthaIron Contributor
Thanks Björn Nettingsmeier. Yeah, Initially I also found this NoCrawl property. But, did not find any supporting api in CSOM model. So, Thought this was only available in SSOM.
But, found the below blog and the version where this is available in CSOM -
https://developer.microsoft.com/en-us/office/blogs/new-sharepoint-csom-version-released-for-office-365/
Björn Nettingsmeier wrote:
Hi Bhanu,
I think you are looking for the "NoCrawl" property which should be set to false in order to get all web content indexed by search. This property should be available via CSOM for Web and List/Lib objects.
Best
Bjoern - bhanu chinthaIron Contributor
Thanks Björn Nettingsmeier. Yeah, Initially I also found this NoCrawl property. But, did not find any supporting api in CSOM model. So, Thought this was only available in SSOM.
But, found the below blog and the version where this is available in CSOM -
https://developer.microsoft.com/en-us/office/blogs/new-sharepoint-csom-version-released-for-office-365/