Configure Solr basic authentication for Commerce Engine indexes
For Sitecore XC 9.2 and later, Commerce Engine indexes support basic Solr authentication for search within the Sitecore XC Business Tools.
Because Commerce Engine indexes typically use the same Solr instance as the Platfom indexes, you must ensure you have configured Sitecore XP to use basic authentication when making a Solr request.
The following steps assume that you have a user set up in Solr. For more information, refer to the Solr documentation.
To enable Solr basic authentication for Commerce Engine indexes:
-
Go to the
c:\inetpub\<CommerceEngine-service>\wwwroot\data\environments
folder and open thePlugIn.Search.Solr.PolicySet-1.0.0.json
file. -
In the
SolrSearchPolicySet
block, set values for the following parameters:-
UseSolrAuthentication
(set to true) -
SolrUserName
(specify the name of the Solr user) -
SolrPassword
(specify the password for the Solr user)
-
-
Save your changes to the file.
-
Bootstrap the Commerce Engine to propagate the new policy information to the global database.
-
Open IIS Manager and stop and restart all sites to ensure that the new policies take effect.
-
Launch the Business tools application in a browser and confirm that you can search for a product successfully. If you do not have indexed products available, run the full index minion for catalog items, using the
Run FullIndex Minion - Catalog Items
request in the Sitecore Commerce_ DevOps > Minions collection in Postman.