Limit Facets based upon query condition

prasanna11
Mega Guru

Is there any way to limit the facets based on a query. I have a facet on "kb_knowledge.kb_category" but i want to show categories belonging to a parent like "parent_id=************"

 

I went through the below article and couldn't find an appropriate solution.

https://docs.servicenow.com/en-US/bundle/utah-platform-administration/page/administer/ai-search/refe...

 

Have anyone had similar requirements? Please help with any ways to implement this with minimal customization or nil.

1 ACCEPTED SOLUTION

Gerard Dwan
ServiceNow Employee
ServiceNow Employee

The way to do with would be to change the search source to match what you are trying to serve to the end user. Essentially, if you are adjusting the facet, you likely want to limit the actual content as well. Basically, create a new Search Profile per interface. 

 

Another option is to add a new field to the KB with only the values you would like to facet on, then change the Search Application configuration to use that field instead.

View solution in original post

1 REPLY 1

Gerard Dwan
ServiceNow Employee
ServiceNow Employee

The way to do with would be to change the search source to match what you are trying to serve to the end user. Essentially, if you are adjusting the facet, you likely want to limit the actual content as well. Basically, create a new Search Profile per interface. 

 

Another option is to add a new field to the KB with only the values you would like to facet on, then change the Search Application configuration to use that field instead.