...
Code Block | ||
---|---|---|
| ||
addEventListener('hawksearch:initialized', (event) => { Hawksearch.handlebars.registerPartial('custom-partial', 'HTML here'); }); |
hawksearch:before-search-executed
This event fired after before every search operation. This can be used to modify the raw request sent to the Hawksearch API.
Code Block | ||
---|---|---|
| ||
addEventListener('hawksearch:before-search-executed', (event) => {
const searchRequest = event.detail;
console.log(searchResponse);
}); |
hawksearch:search-completed
This event fired after every search operation (query, applied facet, etc.).
...