Thursday, 4 December 2014

Commands to setup Solr in Websphere Commerce 

For Catalog Solr Data Setup and Index
                C:\WCDE_ENT70\components\foundation\subcomponents\search\bin>setupSearchIndex.bat -masterCatalogId 10001

C:\WCDE_ENT70\bin>di-preprocess.bat C:\WCDE_ENT70\search\pre-processConfig\MC_10001\DB2\ -fullbuild true -force true

Bring the server up and test it using -      http://localhost/solr/Default/select?q=*%3A* 

C:\WCDE_ENT70\bin>di-buildindex.bat -masterCatalogId 10001

http://localhost/solr/MC_10001_CatalogEntry_en_US/select?q=catentry_id:10251

For Inventory Solr Data Setup and Index
                C:\WCDE_ENT70\components\foundation\subcomponents\search\bin\setupSearchIndex.bat -masterCatalogId 10001 -indexSubType Inventory

C:\WCDE_ENT70\bin>di-preprocess.bat C:\WCDE_ENT70\search\pre-processConfig\MC_10001\DB2\SubTypes\Inventory -force true

Bring the server up and test it using -      http://localhost/solr/Default/select?q=*%3A* 

C:\WCDE_ENT70\bin>di-buildindex.bat -masterCatalogId 10001 -indexSubType Inventory -force true

http://localhost/solr/MC_10001_CatalogEntry_Inventory_generic/select?q=*&fq=catentry_id:( 13331 13332 )
               
               

No comments:

Post a Comment