# Searching for text values

{% hint style="info" %}
To enable dataset text search, self-hosted instances must configure a connection to a search provider. For more information, go to [config-textsearch](https://docs.tonic.ai/textual/textual-install-administer/configuring-textual/enable-and-configure-textual-features/config-textsearch "mention").
{% endhint %}

The **Entities** **Catalog** lists the values that Textual detected in the dataset files.

The **Dataset search** allows you to search for specific values to determine whether Textual detected them and assigned the correct entity type.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2F6AfDKdgNNhdIJzH6bJ2V%2FDatasetEntitiesDatasetSearch.png?alt=media&#x26;token=2f5db577-62bc-4313-ab56-3a0ae67e5630" alt=""><figcaption><p>Dataset search page</p></figcaption></figure>

## Starting a search <a href="#text-search-start" id="text-search-start"></a>

To start a search:

1. On the dataset details page, click **Dataset search**.
2. In the search field, provide the text to search for.

When the text matches a full word in a file, Textual displays the results.

Textual only searches for full words. For example, if you type "nu", it does not find the word "number". You must type the full word "number".

## Viewing the search results <a href="#text-search-results" id="text-search-results"></a>

The search results include a separate row for each found instance of the search text.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2FxtvByNpycIk19wQ2QebH%2FDatasetEntitiesDatasetSearchResults.png?alt=media&#x26;token=e57e483d-8c06-4bfb-8df7-4155a519523c" alt=""><figcaption><p>Results for a dataset text search</p></figcaption></figure>

For each instance, the results include:

* The instance itself, with the immediate context. The context includes the few words before and after the search text.
* The assigned entity type, if Textual detected the search text as an entity. If it did not, then the entity type is **None**.
* The name of the file where the instance was found.

At the top of the list, Textual displays the approximate number of matches and number of files that contain matches.

Depending on the number of matches, the list might not initially include all of the results. If there are additional results, then the **Load more** link displays. When you click **Load more**, Textual adds the next batch of results to the end of the list.

## Filtering the search results <a href="#text-search-filter" id="text-search-filter"></a>

You can filter the results to only include matches in selected files.

To filter the results:

1. Click **Filter by file**.
2. In the file list, check the checkbox for each file to include the results for.

<figure><img src="https://3072847115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvOPn7KQptPWmS5iKg5P0%2Fuploads%2F1xhS8Mo7RDUnrtmSdQe0%2FDatasetEntitiesDatasetSearchFilterResults.png?alt=media&#x26;token=3042b909-6bbb-42a5-a90c-a662259386aa" alt=""><figcaption><p>Filtering the dataset search results by file</p></figcaption></figure>
