You can use the indexprop utility to propagate the WebSphere Commerce search index. It sends an HTTP request to the search index repeater to start
replicating with the staging search index. This process ensures that your catalog changes are
populated into the WebSphere Commerce Search index in production.
The search index repeater is used as both a master
and a subordinate for search replication.
It is used
as a subordinate when replicating with the staging search index, where the staging search index is
the master and the repeater is the subordinate acting as a backup of the search index for
production. After the first replication is completed from staging, the repeater communicates the
changes to its subordinate nodes that are in production.
The repeater then becomes the master, where all nodes from
the search index cluster are configured to poll changes from the repeater on a regular
preconfigured fixed-time interval. This time interval is defined in the
solrconfig.xml file under replication
.
Replicating between the repeater and all search index
clusters in production can be automated, as the indexed data in the repeater always matches the
indexed data in production. The search index repeater must be a subordinate to the staging search
server and master to the production search server.
Important: The repeater must reside in Production, as it relies on the production database to
perform emergency updates.
The indexprop utility accepts optional parameters to validate the index on the master server, and
block replication from the repeater while the utility is running:
- An optional index validation parameter (-queryCheckPropFile) to validate the index on the master
server. Only when all index validations are successful, the index replication is triggered;
otherwise, no replication occurs.
- An optional parameter (-
disableReplicationOnRepeaterUntilIndexPropSuccessful
) that blocks
replication from the repeater while the utility is running, to synchronize all the new indexes and
therefore be available at the same time for all subordinate servers to pull.
The following diagram illustrates the timing of events you must consider when indexing with
staging propagation:

Before you begin
Ensure that the test server is stopped and that Rational Application
Developer is not running.
- Ensure that your administrative server is started. For example:
- If WebSphere Commerce is managed by WebSphere Application Server Deployment Manager (dmgr), start
the deployment manager and all node agents. Your cluster can also be started.
- If WebSphere Commerce is not managed by WebSphere Application Server Deployment Manager (dmgr),
start the WebSphere Application Server server1.
- If global security is enabled, ensure that security credentials for replication are set up for
all search servers.
Procedure
-
Complete one of the following tasks:

Log on as a WebSphere Commerce non-root user.
Log on with a user ID that is a member of the Windows Administration
group.
-
If you are using this utility to replicate the search index, update the replication
configuration file on the staging server to match your WebSphere Commerce Search environment:
-
Open the replication.csv file for editing.
The default location of the file is
solrHome/replication.csv.
Note: When running
the UpdateSearchIndex scheduler job:
- The UpdateSearchIndex scheduler job does not run indexprop by default.
Therefore, the replication.csv does not need to be copied to a location outside
the Solr home directory.
- The replication.csv file should be copied to a location outside the Solr
home directory. This avoids replication automatically taking place every time the UpdateSearchIndex
scheduler job is run. For example, copy the replication.csv to the
WC_installdir/instances/instance_name/search
directory. Then, pass the -solrHome value when running the
indexprop command.
-
Update the replication configuration file with the following information:
- SearchServerName
- The subordinate server name.
- SearchServerPort
- The subordinate server port.
- CoreName
- The core name to replicate.
- UserName
- The user name for the application security-enabled subordinate server.
If application security
is not enabled, set this value to null.
- Password
- The password for the application security-enabled subordinate server.
The password must be
encrypted by the wcs_encrypt utility.
If application security is not
enabled, set this value to null.
For more information on how to update the replication configuration file
(
replication.csv), download and extract the following archive that contains
sample CSV files:
-
Ensure that the core to replicate is configured in the solr.xml
file.
-
Go to the following directory:


WC_installdir/bin
WCDE_installdir\bin
-
Run the indexprop utility:
-
Ensure that the utility runs successfully.
Inspect the following log file for errors:


WC_installdir/logs/wc-indexprop.log
To get more logging information, update the logging level from
INFO
to
FINEST
in the
WC_installdir/instances/instance_name/xml/config/dataimport/indexprop-logging.properties
file:
# Default global logging level, INFO
com.ibm.commerce.level=FINEST
After you propagate the WebSphere Commerce Search index, you can verify the changes in the
storefront.