Contextual search to run on HR Knowledge Base instead of all knowledge bases. 

Raman Mishra
Giga Contributor

In one of the catalog items, I am displaying KB articles using contextual search based on the questions selected in a variable. I want the contextual search to run on HR Knowledge Base instead of all knowledge bases. 

How to achieve this?

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hi @Raman Mishra ,

  1. Determine the encoded query for knowledge base they want to use as the filter. (for example, kb_knowledge_base=ff63da309390120039375562967ffbec)
  2. Navigate to the Contextual Search > Search Contexts module, and select the Search Context you want to modify.find_real_file.png
  3. On the Search Context Resource Configuration tab, they need to select the Resource Configuration they want to modify.
  4. On the Search Resource Context Properties tab, select the Resource Context property to modify. It should be a Condition Resource Context Property.
  5. On the Resource Context Property, you fill in the Value field with an encoded query to restrict the knowledge base to the desired knowledge base.

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

View solution in original post

1 REPLY 1

Community Alums
Not applicable

Hi @Raman Mishra ,

  1. Determine the encoded query for knowledge base they want to use as the filter. (for example, kb_knowledge_base=ff63da309390120039375562967ffbec)
  2. Navigate to the Contextual Search > Search Contexts module, and select the Search Context you want to modify.find_real_file.png
  3. On the Search Context Resource Configuration tab, they need to select the Resource Configuration they want to modify.
  4. On the Search Resource Context Properties tab, select the Resource Context property to modify. It should be a Condition Resource Context Property.
  5. On the Resource Context Property, you fill in the Value field with an encoded query to restrict the knowledge base to the desired knowledge base.

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep