Virtual Agent- Search Knowledge Base, How to restrict search by only 1 knowledge base

Saranya VS
Giga Contributor

Hi Team,

In Search Knowledge Base ,currently contextual search is global. I want to restrict the search by only one knowledge base,like it should display the article from one specific knowledge base. Below is the oob script from contextual search in Search knowledge base. I went though the script include of VAContextualSearchUtil() but I could not find any script to restrict this via code. Please help.,

find_real_file.png

 

Regards,

Saranya

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Within this code the contextualSearch is being used. Have a look in your instance in the navigator, type "Contextual Search".

In an other thread on the community, it's described how you can limit the contextual search to one Knowledge Base:
Limit contextual search to a specific knowledge base

Hope this what you are after.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

3 REPLIES 3

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Within this code the contextualSearch is being used. Have a look in your instance in the navigator, type "Contextual Search".

In an other thread on the community, it's described how you can limit the contextual search to one Knowledge Base:
Limit contextual search to a specific knowledge base

Hope this what you are after.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Hi Mark,

 

Thanks for the quick response and the suggested link helped me to resolve my issue. I did the changes in "ITSM VA Catalog Item Search" context, which is the one for Virtual agent.

Thanks a lot.

 

Regards,

Saranya

 

Alex87
Tera Contributor

Hi,

 

Maybe stupid question, but how can we find that Catalog ID to filter on that it only search on a particular knowledge base. Default Code is this:

sn_sc.CatalogSearch.search(catalogIds, '', search_term, false, false, false);
But i have no clue where i can find out the catalog id of a particular knowledge base.