Skip to main content
Trailblazer Community 已在 Slack 正式上线!更快获得解答,与其他 Trailblazer 交流,并向专家学习。加入社区

Set Up Search Index and Query Configuration

Learning Objectives

After completing this unit, you’ll be able to:

  • Configure harmonized DMOs and UDMOs as searchable, including index and result fields.
  • Create a custom search query configuration scoped to knowledge-related objects for the Lightning Knowledge Component channel.

Help Reps Find the Right Article

Your knowledge content now lives in Data 360, harmonized and ready. But reps don't care where content lives. They care whether they can find the right article in seconds.

Right now, nothing tells Data 360 which fields to search or which to show in results. Without that, a rep who searches for a return policy might get cases, leads, and articles mixed together. You fix that in two steps.

  • You choose which fields are searchable and how the results display.
  • You build a search query configuration scoped to knowledge content.

Learn How Data 360 Searches Your Content

Data 360 searches unstructured content by breaking it into chunks and turning each chunk into a vector embedding. A vector embedding is a numerical representation of text that captures meaning. Chunks with similar meaning get similar embeddings. That's how a search for “refund timeline” finds an article titled “How Returns Work.”

Four kinds of objects are involved along the way.

  1. Unstructured data model objects (UDMOs) hold unstructured data.
  2. Data model objects (DMOs) hold your harmonized data.
  3. Chunk data model objects (CDMOs) hold the chunks created from DMOs or UDMOs.
  4. Index data model objects (IDMOs) reference the vector embeddings.

Configure Search Metadata

For Knowledge, you work with the Knowledge Article Version DMO. Three kinds of fields hold the content worth indexing.

  1. Name is the article title.
  2. Description is mapped from the article summary. It's usually the most useful content.
  3. Custom text fields are rich text fields, up to 131K, that hold longer unstructured content.

Pick the fields reps rely on when they look for answers. Skip fields that add noise.

To improve search results, make your harmonized data model objects (HDMOs) and harmonized unstructured data model objects (HUDMOs) searchable. To do so:

  1. Select Setup and select Setup.
  2. In the Quick Find box, search for and select Query Configurations.
  3. Select Configure Search Metadata.
  4. In the Objects Quick Find box, search for and select Harmonized Content (the data lake object you created in the previous unit).
  5. Turn on the Searchable toggle. Processing can take about 30 minutes.
  6. In the Search Index Fields tab, select the Searchable checkbox for fields such as Title, Summary, and Content Type for display and filtering.

Searchable toggle in harmonized content page.

  1. In the Search Result Fields tab, select the fields that you want to appear in the search results. For example:
    • Title Field: Title
    • Supporting Field: Summary
    • URL Field: Source Url

Search Results Fields section.

Note: For unstructured content, your selections don’t affect search behavior because the entire file is always searchable.

  1. To customize how your search results appear, click Customize in the Customizable Layout for Keywords section.
  2. In the Search Builder Layout, select the object, and then select Add to add fields to the search layout.
  3. Select Choose a Field.
  4. In the search box, search for and select Connector Type from the dropdown list.

Search Layout Builder with Selected Field option.

  1. Select Save.
  2. Select Save to save the layout.

Build a Custom Search Query Configuration

An index tells Data 360 what's searchable. A search query configuration tells it what to search for a specific experience. For reps, that experience is the Lightning Knowledge Component channel.

Scope your configuration to Knowledge-related objects only. That keeps cases, leads, and other records out of the results, so reps see articles and nothing else.

To scope the search to knowledge content, create a custom search query configuration.

  1. Select Setup and select Setup.
  2. In the Quick Find box, enter Search Manager, and then select Query Configurations.
  3. Select Manage Custom Configurations, and then select New.
  4. On the New Search Query Configuration page, enter a name and select Lightning Knowledge Component search channel.
  5. Select Continue.

New Search Query Configuration dialog box.

Note

Custom Experiences search channel is no longer supported. Update your existing Custom Experience configuration to use the Lightning Knowledge Component search channel.

  1. From the Available Objects column, select Knowledge and HDMOs and HUDMOs that you want to make searchable.
  2. Select the right arrow to move them to the Selected Objects pane. If your knowledge content is already mapped to a Harmonized Data Model Object (DMO) in Data 360, you don’t need to add Knowledge separately.

Available Objects and Selected objects in search query configuration.

  1. Select Save and Continue.

You can use this search query configuration in the Enterprise Knowledge component on the Lightning record page to get focused search results.

If you want agents to use Enterprise Knowledge, you don't need a Search Manager. Use the Agentforce Data Library (ADL) instead. ADL reads the harmonized DMOs from Data 360 and uses them as the agent’s knowledge source.

Resources

在 Salesforce 帮助中分享 Trailhead 反馈

我们很想听听您使用 Trailhead 的经验——您现在可以随时从 Salesforce 帮助网站访问新的反馈表单。

了解更多 继续分享反馈