Feature Pack 6 or later

Testing the customization by indexing the inventory data

In this lesson, the sample inventory data is indexed into the WebSphere Commerce search inventory index using the Data Load utility command.

Procedure

  1. Open the command-line interface window.
  2. Go to the WCDE_installdir\bin directory.
  3. Run the following Data Load utility command:
    
    dataload.bat C:\IBM\WCDE_ENT70\search\solr\home\MC_10051\generic\CatalogEntry\Inventory\indexload\wc-solrIndex-load.xml
     
  4. Verify that the inventory index is loaded by going to the inventory index URL:
    • http://localhost/solr/MC_10051_CatalogEntry_Inventory_generic/select?q=catentry_id:10001
    The inventory index documents are returned in the following format:
    
    <?xml version="1.0" encoding="UTF-8" ?>
    - <response>
    - <lst name="responseHeader">
    <int name="status">0</int>
    <int name="QTime">0</int>
    - <lst name="params">
    <str name="q">catentry_id:10001</str>
    </lst>
    </lst>
    - <result name="response" numFound="1" start="0">
    - <doc>
    <str name="catentry_id">10001</str>
    <float name="inv_strlocqty_10202_OnlineStore">200.0</float>
    <float name="inv_strffmqty_10202_10089">100.0</float>
    </doc>
    </result>
    </response>