Working with Search Term Associations (STAs)

Search Term Associations (STAs) enhances, diversifies, or replaces existing search results. Additionally, search phrases can be associated with particular landing pages in the store. A product recommendation strategy using STA is used to increase store sales by modifying search submissions to target or increase search results.

STAs are treated in the same way by Elasticsearch as they are by Solr. For more information, see Search term associations. Similar to Solr, the Query service evaluates and expands Elasticsearch STAs during runtime, including synonyms and replacement terms. Since Query service cannot access Commerce directly, STA configurations from CMC are replicated to Zookeeper during indexing so that Query service can retrieve data from Zookeeper at runtime.

Note: Do not attempt to modify this STA configuration stored in Zookeeper (with node name consists of environment_name + store + "product_sta") as it is meant to be used internally only and will be reset upon next indexing operation. However, you can still use the Get / configuration API from the Data Query service to retrieve this STA listing from Zookeeper for your reference. For information on how to tune synonym processing, see Synonym-related configurations.

For more information on essential guidance concerning the use of synonyms and replacement terms with Elasticsearch, see Expanding synonyms and Search Term Associations at query time.