SearchstaxAnswerWidget JS
SearchStax Site Search solution offers Native JS widgets to assist in building your custom search page.
The SearchstaxAnswerWidget component for JS provides an AI answer widget for your searches.
Usage
searchstax.addAnswerWidget("searchstax-answer-container", {
showShowMoreAfterWordCount: 100,
feedbackwidget: feedbackConfig,
});
Props
showShowMoreAfterWordCount
– number (default 100) determining after how many words UI will show “Read More” view.feedbackWidget
– an optional object that configures thumbs-up and thumbs-down feedback functionality.templates
– template override. See examples at searchstax-ux-js.
Example
See the full example at sitesearch-ux-js.
Questions?
Do not hesitate to contact the SearchStax Support Desk.