> For the complete documentation index, see [llms.txt](https://salsa-digital.gitbook.io/govcms-site-builder/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://salsa-digital.gitbook.io/govcms-site-builder/unit-9-search-and-related-content/search-and-related-content/exercise-9-1-explore-the-default-search.md).

# Exercise 9.1: Explore the default search

First, let’s see how the default search works.

## Default search results

Your website should have a search block in the header or footer. If not you can add a Search block by going to *Structure* → *Block Layout* and clicking **Place Block** in the region you wish to add Search. Then search for 'Search'.

![Image of Add Search block to Footer Top](/files/A1vbGlzr1vvOFSXk1cC5)

The screenshot below shows what a default search result may look like. By default, the search will only find full words (so a search for “class” won't find “classroom”).

You can control this in *Structure* → *Content types* → (choose a content type) → **Manage display**. In this screen you can configure the view mode and field display for Search results.

![Image of Manage Display - Search](/files/eSaWYpdWAkBmWVN0smFm)

![Image of Manage Display - Search - Fields](/files/YMBREPyro9BIBaTsUJ8t)

Note that in the given example for the *Standard Page* content type, we use *view mode* **Search** and **Search** *layout*, to stay consistent with other content types in GovCMS. The *view mode* used in the search could be any other one available, as long as it’s configured to display in the search results (we’ll explore this later).

![Image of Search page](/files/-LzEdJINk_vM6ise8JRq)

## Understanding the index

1. Add a new **News and Media** with a word you haven’t used before, such as “basketball”.
2. Once you’ve published the content, do a search for the word. You won’t get any results because the search doesn’t update instantly. This is because the search uses a cached index of content to speed up the results and decrease the performance impact on your website. However, the search will be updated the next time the cron job is run.
3. Try the search in a few minutes. Note: The search is case-sensitive.

## What is cron?

Cron is a method for scheduling specific tasks to run on your site. Cron is scheduled to run every three hours by default and clears the site cache when you run it. You can schedule tasks using cron as often as you’d like.

Read more <http://drupal.org/cron>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://salsa-digital.gitbook.io/govcms-site-builder/unit-9-search-and-related-content/search-and-related-content/exercise-9-1-explore-the-default-search.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
