---
title: "Display results for an empty search input field"
slug: "display-results-for-an-empty-search-input-field"
abstract: "How to fetch results for a preview search widget when a user clicks without entering a search phrase using Sitecore Discover Customer Engagement Console (CEC)."
---
# Display results for an empty search input field

Sitecore Discover displays results in the preview search widget, based on the text entered in the search input field. This procedure describes how you can generate recommendations even when the visitor clicks **Search** without entering any text.

To display results for an empty search input field:

1. In an empty file, add some keywords separated by commas and save the file as *keywords.csv*.
2. In the Customer Engagement Console (CEC), on the menu bar, click **Widgets**.
3. On the **Widgets** tab, click the name of the preview search widget you want to open.
4. On the **Widget Variations** tab, click **Add Variation** and in the input field, enter an easy to identify name for the new variation.
5. Turn on the **Make this as a default variation** switch and click **Save**.
6. On the **Rules** tab, click **Add Rule**.
7. On the menu bar, click **Context** and click the **Site Context** tab.
8. Click **Add Attribute**, select *Keywords* from the list, and in the operator drop-down menu, click **Is Empty**.
9. To add keywords from the **keywords.csv** file, click **Import value from file**.
10. Locate the **keywords.csv** file and click **Open**.
11. Click **Save** and then click **Publish**.