Performing search index optimization
There are several search optimization hints and tips to consider when administering WebSphere Commerce Search.
Best practices
- Do not perform index optimization while indexing. It is a separate administrative task that runs only when system usage is low.
- Configure the UpdateSearchIndex scheduler task in production to run more frequently for delta updates. Perform a clean full build only when the system usage is low.
Defragmenting the search index
You can defragment the search index by either:
- The
optimize
parameter can be used for delta updates.You might want to set the parameter to false to save time when you are building the WebSphere Commerce Search index. That is, by manually setting it in the data import URL.
For example:http://host_name/solr/MC_masterCatalogId_CatalogEntry_en_US/dataimport?command=delta-import&optimize=true
For more information, see Data Import Request Handler.
- The
clean
option can be used for full updates.For example:http://host_name/solr/MC_masterCatalogId_CatalogEntry_en_US/dataimport?command=full-import&clean=true
Detecting replication status
You can check the replication status on each
subordinate node:
- Run the following
command:
http://subordinate_host:port/solr/replication?command=details
- Check the value of the
isReplicating
flag to see its replication status.