How to pass a variable from widget to Search Source

Mai Iris
Tera Contributor

Hi, all.


I'm trying to add sort option in Zing search.
so basically we want to add sort options to Faceted Search Widget and pass a sort key to Data fetch script of Search Source when sort option is changed.
(I have already given a try that we can change sort order from relevancy to another key in Data fetch script of Search Source and it worked.)

 

But I am not able to pass it to Data fetch script from the client script or server script on widget at this time.
How can this be achieved?

0 REPLIES 0