# Exercise 9.2: Set up Job posting content type display in global search

Try to conduct a search for a published Job posting content type. You’ll notice that it appears differently to other content types:

| <p><img src="https://3186608908-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzAsrTcKaHnLDg-7ALW%2Fuploads%2Fgit-blob-55ebe8ea43c74d15b4393ce379306c8ce5dd911a%2F146.png?alt=media" alt="" data-size="original"></p><p>Standard page search results</p> | <p><img src="https://3186608908-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzAsrTcKaHnLDg-7ALW%2Fuploads%2Fgit-blob-228f6caee51419d9dab08d8fc93f494f8f37680e%2F147.png?alt=media" alt="" data-size="original"></p><p>Not configured Job posting search result</p> |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

This is because the search index isn’t configured to display the right View mode for the Job posting content type and it shows the same content as the full-page view.

Let’s change that, by activating Search view mode in the Job Posting content type and then configuring the search to use it.

1. Go to *Structure* → *Content types* → *Job Posting* → **Manage display**.
2. Under the *Custom display settings*, enable the **Search** view mode. Save the changes.
3. Click the Search link at the top (in the secondary tabs) to navigate to the Search view mode.
4. Under the **Select a layout** field, select **Search** and save the changes. You’ll notice that the fields table below now shows multiple regions, such as:
   * Title
   * Info
   * Summary
   * Tags
   * Disabled
5. Rearrange fields (drag-and-drop) to match the screenshot. Move the remaining fields into the disabled region. Focus on making the Title field a link and trimming the Job description down to 300 characters. Remember to **Save** your changes.

   <img src="https://3186608908-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzAsrTcKaHnLDg-7ALW%2Fuploads%2Fgit-blob-4feec8b224b820a9c8c1b4b40646441300419cbc%2FEx-9-2-Jobs-Search-3.png?alt=media" alt="Image of Configure Search for Job postings" data-size="original">

   Now, as we created and customised the Job posting view mode for Search, let’s make the search page to use it. Our search page is made as a View, although it’s set to use the Search API functionality. We’ll explore how to create a Search API view later.
6. Go to *Structure* → *Views* and edit the **Search** view.
7. Under **Format** → **Show**, click on the **Settings** link:

   <img src="https://3186608908-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzAsrTcKaHnLDg-7ALW%2Fuploads%2Fgit-blob-5d03a0fdb8cbcfb0bcae8d9768a4882858b200bd%2FEx-9-2-Jobs-Search-4.png?alt=media" alt="Image of edit Search view" data-size="original">
8. Locate the “**View mode for datasource** ***Content*****, bundle** ***Job Posting”*** and change it to use the **Search** view mode created earlier

   <img src="https://3186608908-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzAsrTcKaHnLDg-7ALW%2Fuploads%2Fgit-blob-78e8f4a379d998aab636725082b08f5c1fc9693e%2FEx-9-2-Jobs-Search-5.png?alt=media" alt="Image of use Search viee mode" data-size="original">
9. **Apply** your changes and **Save** the view.
10. Repeat search for a job posting and confirm if the display looks similar to other content types.

    | <p><img src="https://3186608908-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzAsrTcKaHnLDg-7ALW%2Fuploads%2Fgit-blob-6de44329b3a6d9eb119d697b85e809ee96dc862f%2FEx-9-2-Jobs-Search-6.png?alt=media" alt="" data-size="original"></p><p>Search result for Job posting</p> | <p><img src="https://3186608908-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LzAsrTcKaHnLDg-7ALW%2Fuploads%2Fgit-blob-61d11a78d7518078de69bc3bfb00860f6d56e985%2FEx-9-2-Jobs-Search-7.png?alt=media" alt="" data-size="original"></p><p>Search result for News page</p> |
    | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11. You may return to the Search view mode in the Job posting content type and change it further, to test how your changes affect the search results display widget.


---

# Agent Instructions: 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:

```
GET https://salsa-digital.gitbook.io/govcms-site-builder/unit-9-search-and-related-content/search-and-related-content/exercise-9-2-set-up-job-posting-content-type-display-in-global-search.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
