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'm working with the PnP powershell. Looks like this does the same:
https://msdn.microsoft.com/en-us/pnp_powershell/requestpnpreindexweb
Nice one!
- Mike JansenNov 29, 2017Iron Contributor
As I would do a provisioning of an initial site collection it will not be a problem to wait for half an hour. I just take the safe margin.
- Nov 28, 2017
The straight answer is that here isn't a safe margin. By default continuous crawls run every 15 minutes so it is theoretically possible for the update to take 29 minutes, if you were just too late.
- 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?