Search widget features
Display modes
The Nuclia Search Widget supports the following display modes:
Search input:
This input is meant to be located in the top or left bar of the page. When the user types in the input, suggestions will be displayed in a dropdown menu and results will appear in a modal dialog box.
Search form:
This form is meant to be located in the main area of the web page. When the user types in the input, suggestions and results are displayed in the body of the page under the search form.
Permalink
If you want users to be able to share a resource preview with a friend or a colleague, enable the permalink mode by adding permalink
attribute to <nuclia-widget>
in your code snippet.
It will automatically add the resource id to the query parameters of the URL, allowing the widget to render directly this resource on load.
Multiple widgets
You can define several widgets for the same knowledge box, and each widget can have different parameters.
It allows using the same knowledge box in different contexts, for example, a super simple search widget with no extra options for a general public search, and a more advanced search widget with many filters for a specific web application.