Forum Discussion
SharePoint provisioning with script; crawled property question (only available after item in list?)
- Nov 24, 2017
HI Mike Jansen,
Yes that is right. As a workaround I quite often provisioned a test list with al of my columns included and then create one list item through my provisioning scripts.
I try to script the whole provisioning so want to avoid any manual actions. Maybe I can script the re-index. I'll do some testing.
You can script the reindex using Mikael Svenson script:
http://www.techmikael.com/2014/02/how-to-trigger-full-re-index-in.html
- Mike JansenNov 24, 2017Iron Contributor
I'm working with the PnP powershell. Looks like this does the same:
https://msdn.microsoft.com/en-us/pnp_powershell/requestpnpreindexweb
- Nov 24, 2017
Nice one!
- Mike JansenNov 24, 2017Iron Contributor
One additional question though.
I try to put everything into one script. So after the "Request-PnPReindexWeb" or "Request-PnPReindexList" I need to pause the script to wait for the incremental crawl to finish.
What would be a safe margin? 5 minutes?