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

We actually just resolved our issue. It was due to a forward slash character in our Taxonomy label. We removed the forward slash then re-indexed AI Search and it started working.

Thanks for that. Same fix,  removed the slash from the label and re-index.

nani13
Tera Contributor

Can anyone post the solution fix which can help others?