The CreatorCon Call for Content is officially open! Get started here.

Search Bar on a Topic Page

Stuart Tucker
Tera Contributor

Can you have a separate search bar on a Topic Page, that only searches the content in that Topic? Rather than using the global search at the top, people who have navigated to the topic should automatically have a refined search based on the topic they are in. The 'Filter By' and 'Sort By' are ok but only give a limited search capability.

1 ACCEPTED SOLUTION

Dan O Connor
ServiceNow Employee
ServiceNow Employee

Hey @Stuart Tucker 

Yes you can 🙂 

 

You will notice when on a Topic page configuring there is an option to select a Topic Template. This is effectively a page that ties to that topic. OOTB there is a page provided.

 

If you clone/copy this page, you can then add in additional widgets, and uses it as a template for certain topics.

 

You can add the typeahead widget into a topic page, and then configure the widget to only return search results for that topic. Using Zing search this is easily done in the widget itself.

If using AI Search, you will need to create a new AI Search app and associated configurations, that you then select as part of the widget.

 

Here is an example of the search widget on a topic page

DanOConnor_0-1677839229461.png

 

Here is an example of that widget configured using AI Search, notice how it has a search application that doesn't ship OOTB. However you can just mirror the OOTB config to recreate a new search application, just fine tuning the search sources to return what you want it to show. In this case, the filter in search sources handily allows you define a topic 🙂 

DanOConnor_1-1677839258905.png

 

View solution in original post

12 REPLIES 12

Dan O Connor
ServiceNow Employee
ServiceNow Employee

Hey @Stuart Tucker 

Yes you can 🙂 

 

You will notice when on a Topic page configuring there is an option to select a Topic Template. This is effectively a page that ties to that topic. OOTB there is a page provided.

 

If you clone/copy this page, you can then add in additional widgets, and uses it as a template for certain topics.

 

You can add the typeahead widget into a topic page, and then configure the widget to only return search results for that topic. Using Zing search this is easily done in the widget itself.

If using AI Search, you will need to create a new AI Search app and associated configurations, that you then select as part of the widget.

 

Here is an example of the search widget on a topic page

DanOConnor_0-1677839229461.png

 

Here is an example of that widget configured using AI Search, notice how it has a search application that doesn't ship OOTB. However you can just mirror the OOTB config to recreate a new search application, just fine tuning the search sources to return what you want it to show. In this case, the filter in search sources handily allows you define a topic 🙂 

DanOConnor_1-1677839258905.png

 

Alex Edmiston1
Giga Guru

There is native search functionality on the Topic page with Utah and Employee Center 28.0.4. 

See this post for more info

AlexEdmiston1_0-1677863642964.png

 

Hey Alex,

 

As per your suggestion we saw our set up and everything is fine , instance version -UTAH, App above 28 and AI search. we can see the search tab on topic page but its not working .

when we are searching with any keywords its giving as no result.

could you please let us know is there bug from ServiceNow side?

Hello,

We also updated our Employee Center to v30 and upgraded to Utah.  We have the search bar displayed on topic pages but results are very inconsistent.  Results often say, No results found, even when we can see content on the topic page with the exact match to the search words.  Sometimes it works, but sometime it doesn't.  We also found that it might work on the parent page search, but not the child page, where the article sits.  Documentation only discusses configuring the number of results.  Is there some other indexing or configuration required?