Interfaces are created using setup which is included when generating the interface from the Console.
You can subscribe to events by calling your interface with the "sub" value followed by the pipeline (either pipeline or instantPipeline) and event name, then a callback. It takes the form.
For example, if you are using the default inline interface and want to listen to the search-sent event, you would write:
For information on the events please refer to the documentation on our Github
When you generate an interface via console for a Site Search collection, we return title, description, URL, and image(optional) in the search results. In some instances, you might want to hide title, description, or URL.
Our default interface uses URL field for click-tracking, and it must be returned in response, otherwise, the click-tracking won’t function. Hence, if you try to remove URL field, it will return an error:
To hide ‘title’ or the ‘description’ field from the search interface: