Add Assets Tab to Global Search

Paulo Machado
Mega Sage

I have been try to add assets (alm_assets) to "Glob al Search", but I haven't been successful.

So far, I have completed the following steps:

1. Created a record in sys_search_source:

PauloMachado_5-1780335671107.png


2. Linked the record in m2m_search_context_config_search_source:

PauloMachado_6-1780335693783.png


3. Confirmed that the Asset table is indexed:

PauloMachado_7-1780335733877.png

 

4. Created a Text Search Group (ts_group):And I created a "Text Search Groups" ( ts_group):

PauloMachado_8-1780335767659.png

 


However, no Asset records are being returned in Global Search:

PauloMachado_9-1780335799725.png

 

 

 

 

Does anyone have an idea of what else I need to configure in order for Asset records to appear in the search results?

I followed the documentation below:
 https://www.servicenow.com/docs/r/washingtondc/platform-administration/search-administration/set-glo...


Thanks in advance.

4 REPLIES 4

Tanushree Maiti
Tera Patron

Hi @Paulo Machado 

 

Following are the OOB Search source.

 Search source Table searched
Tasks - IncidentsIncident [incident]
Tasks - Change RequestsChange Request [change_request]
Tasks - Change TasksChange Task [change_task]
Tasks - ProblemsProblem [problem]
Tasks - RequestsRequest [sc_request]
Tasks - Catalog TasksCatalog Task [sc_task]
People & Places - UsersUser [sys_user]
Tasks - Requested ItemsRequested Item [sc_req_item]
People & Places - GroupsGroup [sys_user_group]
Knowledge & Catalog - KnowledgeKnowledge [kb_knowledge]
People & Places - CompaniesCompany [core_company]
Knowledge & Catalog - Catalog ItemsCatalog Item [sc_cat_item]
 
For Asset , you need todefine it as a Search Source and link it to your Search Application Configuration.
 

Procedure

  1. Define the new search source in the Search Source [sys_search_source] table.
    1. Select All.
    2. In the Filter field, enter sys_search_source.list.
    3. Press Enter.
    4. Select New.
    5. On the Search Source form, fill in the fields.
       Field Description
      NameName to display for the search source in the global search results page.
      TableTable to make searchable for global search.
      ConditionsFilter conditions that table records must satisfy to be searchable.
      ApplicationApplication scope for the search source. This field is automatically set.
    6. Select Submit.
  2. Link the new search source to the record for the global or workspace search application in the Search Application Configurations [m2m_search_context_config_search_source] table.
    1. Select All.
    2. In the Filter field, enter m2m_search_context_config_search_source.list.
    3. Press Enter.
    4. Select New.
    5. Select the additional actions icon (TanushreeMaiti_0-1780338734536.png

       

      ), then select Configure > Form Layout.
    6. Use the slushbucket to add the Search context config field to the selected field list, then select Save.
    7. On the Application Search Sources form, fill in the fields.
       Field Description
      SourceName to display for the search source in the global search results page.
      OrderOrder of appearance for the search source in the search application configuration context.
      ApplicationApplication scope for the search source. This field is automatically set.
      Search context config

      Record for the global or workspace search application in the Search Application Configuration [sys_search_context_config] table.

      To add the search source for global search, select the Now Experience Search Configuration record.

      To add the search source for a workspace application, select the record for that application. For example, to add a search source for Agent Workspace, select the Agent Workspace Search Config record.

    8. Select Submit.
  3. Optional: Reorder search sources for the global or workspace search application.
    1. Navigate to All > AI Search > Search Experience > Search Applications.
    2. Open the record for the search application.
      Note:
      For global search, open the Now Experience Search Configuration record. For a workspace application, open the record for that application, such as the Agent Workspace Search Config record for Agent Workspace.
    3. In the Application Search Sources related list, edit the Order values for search source records to alter the display order for table filters on the application's search results page.

Result

The new search source appears in global or workspace search results.

 

refer  Servicenow Documentation: Search settings filter and group global search results by table 

AI Search for Next Experience default source facet buckets for global search 

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

Hi @Tanushree Maiti 

I followed those steps exactly, but it didn't work.

@Tanushree Maiti I also followed these steps and the same as Paulo. It did not work.  Assets are not being found via global search.