Set "Always index all Web Parts on this site" search option via PNP Powershell? #4094
Replies: 1 comment
-
Not implemented in CSOM. Only SSOM. Nothing to do here. :/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
we are developing a solution for SharePoint2019. The customer wants to have the content of every webpart indexed. (They are using ContentEditor Webparts with text in it and want to find the aspx when they do a search for a word that is in that CEWP.
The option we need to set is: https://learn.microsoft.com/en-us/sharepoint/make-site-content-searchable
On the site, select Settings Settings icon., and then select Site settings. If you don't see Site settings, select Site information, and then select View all site settings.
Under Search, click Search and offline availability.
In the Indexing ASPX Page Content section, select one of the following options:
I just cant find the option to set it programmatically.
Can anyone help please? Thanks in advance
P.S, I turned the option on via the GUI and did a Get-PnPProvisioningTemplate. After that I turned the option off again and did another Get-PnPProvisioningTemplate and compared the two files. Actually no differences in the generated xml files.
Beta Was this translation helpful? Give feedback.
All reactions