HCL Commerce Version 9.1.12.0 or later

Build an index and verify that the profit margin field is indexed

In this lesson, you build an index and verify that the profit margin field is indexed.

Procedure

To build the index and verify that the profit margin field is indexed, complete the following steps:

  1. Build the search index.
    Issue the following command from within a REST client.
    POST: https://ingestServerHostname:ingestServerPort/connectors/auth.reindex.cas/run?storeId=catalogAssetStoreId
  2. Verify that the profit margin field is indexed.
    1. Using a REST client, issue the following POST commands to verify that the search index data are available.
      Product data
      http://ElasticSearchServerName:ElasticSearchPort/auth.catalogAssetStoreId.product/_search?q=id.catentry:catentryId
      Ensure that cost price data is available for the catentryId that you are using to verify that the profit margin field is indexed.
      Verify that the profit margin field is indexed by issuing a REST GET request, for example:
      GET: http://ElasticSearchServerName:ElasticSearchPort/auth.10501.product/_search?q=id.catentry:10001