Overview:
This article will show you how to change the schedule for the Instant Search scanner. The default scan interval is once every 7 days. It's worth noting that when you start scanning a new map service from the Instant Search tab, that scanning job will start immediately. Once the initial index has been created, you can set the re-scanning schedule with these instructions.
Solution:
This article will show you how to change the schedule for the Instant Search scanner. The default scan interval is once every 7 days. It's worth noting that when you start scanning a new map service from the Instant Search tab, that scanning job will start immediately. Once the initial index has been created, you can set the re-scanning schedule with these instructions.
Solution:
- Edit the role.config file located here: C:\Program Files\Latitude Geographics\Geocortex Core\NSRoot\Geocortex\Core\Roles\InstantSearch\ScannerManager\3.X.X.XXXX\role.config
If you make a backup of this file before editing it, save it to a folder outside the Geocortex Core folder structure. Multiple .config files in the role home folder may cause multiple roles to start!
- Look for the examples that are commented out:
<!--<StartupSetting Key="IndexSchedule" Value="{'Interval':'Daily', 'Hour':12, 'Minute':0}" />--> <!--<StartupSetting Key="IndexSchedule" Value="{'Interval':'Weekly', 'DayOfWeek':'Sunday', 'Hour':12, 'Minute':0}" />--> <!--<StartupSetting Key="IndexSchedule" Value="{'Interval':'Monthly', 'DayOfMonth':28, 'Hour':12, 'Minute':0}" />-->
- You can either un-comment the one that you want to use (by removing the '<!--' from the start of the line, and the '-->' from the end of the line), or copy and paste one of the elements on a new line. For example:
<StartupSetting Key="IndexSchedule" Value="{'Interval':'Daily', 'Hour':12, 'Minute':0}" />
- This example causes the indexer to run once per day at noon, local time.
You should be careful not to set the scanner to run too frequently. It is possible for a new scanning job to start and run while a previous job is still not yet completed.
Times in this file are based on local machine time. Please ignore the comment "Times are in UTC".
- Save and close the file. The role will restart automatically.
- Go to the Instant Search tab for the service and click the play button to manually start a scan and apply the changes to the schedule. You do not need to wait for the scan to complete.
Comments
0 comments
Article is closed for comments.