ui.modern.session.search_history.size

Background

This setting controls the size of the search and click history stored for each user and affects:

  • Number of past distinct queries to retain for the search history

  • Number of clicked results to retain for the click history

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.size key, and set the value. This can be set to any valid Integer value.

Default value

20 items are retained by default:

ui.modern.session.search_history.size=20

Examples

Retain only the last 5 queries and clicks:

ui.modern.session.search_history.size=5