ui.modern.session.search_history.suggest.display_template
Background
You can specify a template for search history
suggestions to define how each suggestion should be displayed when ui.modern.session.search_history.suggest
is enabled
It’s using a micro-templating system allowing you to choose which fields should be displayed for each suggestion.
The following tokens are available:
-
query
: Previous query run -
totalMatching
: Number of results the query yielded
Tokens are used in curly brackets, e.g. {query}
. The modern UI will replace the token with actual values when rendering the suggestions.
Setting the key
Set this configuration key in the results page (preferred) or search package configuration.
Use the configuration key editor to add or edit the ui.modern.session.search_history.suggest.display_template
key, and set the value. This can be set to any valid String
value.
Examples
Only display the query in italics:
ui.modern.session.search_history.suggest.display_template=<em>{query}</em>
See also
-
Specify how long should Funnelback keep the session since the last visit of the search user.
-
Specifies the size of the search and click history stored for each user
-
Specify whether to display search history in the auto-completion suggestions
-
Specify the name of the category which search history suggestions are displayed