HCL Commerce Version 9.1.15.0 or later

Extending search profiles

Search profiles can be extended either by manually adding custom profiles or by using ZooKeeper to store and manage named profiles.

Search profiles give you the ability to control the storefront search experience at page-level. Search profiles group sets of search runtime parameters such as search index name, search index fields, expression providers, paging, and sorting, as described in Search profiles.

Custom profiles

You can manually add your own profiles inside the custom directory in ESQueryService/src/main/resources/profile. The profiles directory contains a custom subdirectory where you can store your own profiles. The custom directory contains three predefined subdiredtories: ingest, nlp, and search. You can create additional subdirectories and place your own custom profiles in them.

After adding a custom profile, restart both the data Query container and the Search Query container. To view your newly added custom profile, use the Query service API and call the following endpoint:
/api/v2/documents/profiles/profileName

Your custom profile appears under the userData section of the reply.

Using Zookeeper to store extension data

ZooKeeper stores the named profiles in one of its nodes. You can create, update, delete the profiles, and get them using the profiles endpoint of the Query service.