Search index optimization
When you administer WebSphere Commerce Search Search, consider the following optimization hints and tips.
Best practices
- Do not do 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. Run a clean full build only when the system usage is low.
Defragmenting the search index
We 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 we 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
We can check the replication status on each subordinate node:
- Run the following command:
http://subordinate_host:port/solr/MC_masterCatalogId_CatalogEntry_en_US/replication?command=details
- Check the value of the indexVersion and generation to see its replication version.