- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2019 06:30 AM
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.,
Regards,
Saranya
Solved! Go to Solution.
- Labels:
-
Knowledge Management
-
Virtual Agent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2019 06:43 AM
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
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2019 06:43 AM
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
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2019 08:12 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2021 12:25 AM
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: