Wednesday 22 October 2014

WCS - Search - Debugging Tips and Tricks

WCS - Search - Debugging URLs
           Default port for Server ( localhost:3737 ) & WCDE is localhost
A. SOLR Cores, Searching Cores.
  1.  Find List of all SOLR cores - http://localhost/solr/admin/cores    -- core_name comes from this URL
  2. Search for all documents - http://localhost/solr/MC_10001_CatalogEntry_en_US/select?q=*:*&fl=*&wt=json
  3. Search for all documents with a catentry_id of 10001 - http://localhost/solr/MC_10001_CatalogEntry_en_US/select?q=catentry_id:10001&fl=*&wt=json
           the core (highlighted in red) comes from the list of SOLR Cores URLs.
B. Data Import Handler & SOLR Core Status
  1. Check DIH status - http://localhost:3737/solr/MC_10001_CatalogEntry_en_US/dataimport
  2. Run DIH (full import) - http://localhost:3737/solr/MC_10001_CatalogEntry_en_US/dataimport?command=full-import
  3. Run DIH (delta import) - http://localhost:3737/solr/MC_10001_CatalogEntry_en_US/dataimport?command=delta-import
  4. Check search core status - http://localhost:3737/solr/admin/cores?action=status&core=MC_10001_CatalogEntry_en_US 
  5. Reload search core configuration - http://localhost:3737/solr/admin/cores?action=reload&core=MC_10001_CatalogEntry_en_US
  6. Disable replication on source for all targets - http://source_server:3737/solr/MC_10001_CatalogEntry_en_US/replication?command=disablereplication
  7. Enable replication on source for all targets - http://source_server:3737/solr/MC_10001_CatalogEntry_en_US/replication?command=enablereplication
WCS - Search - Paths
SOLR home or WCS_SEARCH_SOLR_HOME  :TOOLKIT_HOME\search\solr\home
  •  WCDE_installdir\search\solr\home   -- Developer 
  •  WC_installdir/instances/instance_name/search/solr/home/     --- Server
WCS - Search - Configuration Files
C:\IBM\WCDE_ENT70\search\solr\home\MC_10001\en_US\CatalogEntry\conf 
  1. solrconfig.xml   
  2. schema.xml -- Has field, dynamic fields details of each document .
  3. wc-data-config.xml   --- DB configuration and crawling SQL statements used by building index utility. 
  4. C:\IBM\WCDE_ENT70\workspace\WC\xml\config\com.ibm.commerce.catalog-fep\wc-search.xml  -- configurations for Websphere commerce search to  query the search cores for displaying data 
WCS - Search Utilities
  1. di-preprocess utility   --- Transform data from catentry , catgroup , etc tables to temporary tables starting with TI_*  . 
  2. di-buildindex utility    --- Crawls the temporary tables TI_* to and writes these to index through Data Import Handler (DIH).  This utility reads the queries in wc-data-config.xml for building the index.  
From IBM wcs Infocenter



















WCS does not come with the SOLR Admin war. It is recommended that you merge the admin subdirectory in the SOLR.war file downloaded from Apache Solr and merge it into the SOLR.war file located on the WebSphere Commerce search server.

No comments:

Post a Comment