Creating and scheduling the UpdateSearchIndex job
The UpdateSearchIndex job command is used for synchronizing Quick Publish catalog changes with the search index in production.
The UpdateSearchIndex job processes a re-indexing
request by launching the index preprocessor. The class is synchronized, so that there is only at
most one thread that could be run for re-indexing. Upon completion of re-indexing, either delta or
full, another event is raised to release an internal synchronization lock. The following list
highlights the main logic flow for the scheduler command:
- It performs a check to see if there is already an indexing process or indexing replication occurring. If so, the command immediately aborts. Otherwise, it applies an indexing synchronization lock.
- It performs the index preprocessing logic.
- It builds the search index by calling the Data Import Handler (DIH).
- If index replication is configured through the replication.csv file, the command monitors the replication status from all the declared search slave servers.
- Once all the slave servers have confirmed that index replication is completed, the command issues a final cache invalidation request to replay all previously registered cache invalidation requests since the start time of the scheduler command, or the last run time of this command, whichever is earlier.
- It releases the indexing synchronization lock.
Note:
- The UpdateSearchIndex job must be run on a server that does not provide services to users because of performance considerations.
- The UpdateSearchIndex job does not index site content. You must index site content using the site content crawler utility. For more information, see Indexing site content with WebSphere Commerce Search.
- When you schedule this job to replicate the search index (indexprop), ensure that the replication.csv file is located under the solrHome directory.
- If you have deployed the inventory index, the UpdateSearchIndex job can refresh the inventory index at a different interval than the product index.
Procedure
- Open the Administration Console and select Site on the Administration Console Site/Store Selection page.
- Click . A list of jobs that are scheduled to run is displayed.
-
Create the UpdateSearchIndex job: