Mia Li
03/20/2026, 7:01 AMSteve Goldberg
03/20/2026, 10:55 AMSteve Goldberg
03/20/2026, 10:55 AMSteve Goldberg
03/20/2026, 10:56 AMmountToApp: function mountToApp (container) {
var Environment = container.getComponent('Environment');
if (Environment) {
Environment.defineSearchMasterOptions('Facets', function (searchApiMasterOptions) {
searchApiMasterOptions.sort='custitem_search_boost:desc'
return searchApiMasterOptions
});
}
}
In this example, I am telling it to sort results first by custom field on the item – then it will use whatever the customer selects in the UISteve Goldberg
03/20/2026, 10:57 AMMia Li
03/23/2026, 3:29 AM