
Setting up the HCL Commerce Solr-based Nextjs Store development environment
The Orchestration service acts as a bridge between Ruby applications that can only recognize Elastic-based search formats, and Solr-based search services. If you plan to develop for Ruby applications for use with a Solr-based search solution, you must configure the Orchestration service to test your storefronts in an HCL Commerce development environment.
For more information on the Orchestration service, see Orchestration service.
Before you begin
- Set up an HCL Commerce development environment:
- Install or upgrade to HCL Commerce Developer 9.1.16.0 or greater.
- Configure your HCL Commerce Developer Legacy environment for use with the Solr-based search solution. For more information on the Solr-based search solution, see Using Apache Solr as your search solution.
- Set up an HCL Commerce Developer Next.js Store environment.
- Ensure that your environment meets both hardware and software requirements:
- For software requirements, review Supported software levels, fixes, and settings for HCL Commerce.
- For hardware requirements, review ../refs/rigrechw.html.
If you are using Microsoft Windows:
Procedure
- Clone the HCL_Commerce_DevOps_9.1.x.x.bundle git bundle.
-
Ensure that your
STORECONF
database table is correctly configured.- Ensure that
wc.search.priceMode.compatiblePriceIndex
is set to 0 for your store.update storeconf set VALUE='0' where NAME='wc.search.priceMode.compatiblePriceIndex';
- Ensure that
hcl.imagePath
is set to your image path for your store.For the default Next.js sample store, use the following SQL to set it to /hclstore.INSERT INTO WCS.STORECONF (STOREENT_ID, NAME, VALUE) VALUES(41, 'hcl.imagePath', '/hclstore'); INSERT INTO WCS.STORECONF (STOREENT_ID, NAME, VALUE) VALUES(42, 'hcl.imagePath', '/hclstore');
- Ensure that
headlessStore
is set to true for your store.For the default Next.js sample store, use the following SQL to set it to true.INSERT INTO WCS.STORECONF (STOREENT_ID, NAME, VALUE) VALUES(41, 'headlessStore', 'true'); INSERT INTO WCS.STORECONF (STOREENT_ID, NAME, VALUE) VALUES(42, 'headlessStore', 'true');
- Ensure that
-
Download, load, and deploy the HCL Commerce Elasticsearch-based search data
and orchestration Docker images for your HCL Commerce development environment.
Review the following task and deployment reference information:
- ../../search/tasks/tsdelasticdeployDevEnv.html.
- The Docker Compose deployment env.sh configuration file.
SEARCH_ENGINE=solr DEPLOY_TYPE=toolkit REACT_STORE_ENABLED=false LICENSE_ACCEPTED=accept ENV_TYPE=auth TOOLKIT_HOST=<toolkitHost> TOOLKIT_HOST_IP=<toolkitHostIP> TOOLING_HOST=<toolingHost> ORCHESTRATION_ENABLED=true ORCHESTRATION_IMAGE=<orchestrationImage> SPIUSER_PWD_ENCRYPTED=<encryptedSpiUserPassord>
- Verify that all of the containers are up and healthy.
-
Run the HCL Commerce Developer Nextjs store configuration script.
Results
What to do next
Note: the Cache Manager application can be deployed more easily by updating your deployment env.sh file and setting the CACHE_ENABLED and CACHE_APP_IMAGE parameters.