Create facets for tags

Rashi Kulshres1
Giga Contributor

We are enabling AI search on custom created portal and we have created facets for knowledge base, type and category. We are looking to create facets for tags on kb_knowledge table.

Can someone please guide me on this.

@Gerard Dwan 

1 ACCEPTED SOLUTION

Austin Portal
ServiceNow Employee

Hello @Rashi Kulshreshtha,

We can add a facet on tags by using 'tags' as the "Facet Field" in the Search Facet record. This would be a cross table facet and any other tables, in addition to kb_knowledge, would be included under this facet.

Indexing of tags is not enabled by default, we can enable it under the "Advanced Configurations" of the kb_knowledge Indexed Source. Documentation on how to do this can be found here.

 

Here is an example of that Search Facet record

find_real_file.png

 

Here is an example of what it looks like in service portal (with the tags on a documents)
find_real_file.png

find_real_file.png

 

 

View solution in original post

3 REPLIES 3

Austin Portal
ServiceNow Employee

Hello @Rashi Kulshreshtha,

We can add a facet on tags by using 'tags' as the "Facet Field" in the Search Facet record. This would be a cross table facet and any other tables, in addition to kb_knowledge, would be included under this facet.

Indexing of tags is not enabled by default, we can enable it under the "Advanced Configurations" of the kb_knowledge Indexed Source. Documentation on how to do this can be found here.

 

Here is an example of that Search Facet record

find_real_file.png

 

Here is an example of what it looks like in service portal (with the tags on a documents)
find_real_file.png

find_real_file.png

 

 

Rashi Kulshres1
Giga Contributor

Hi @Austin Portal ,

 

Thanks for your reply. I appreciate it. I have created a similar facet as suggested by you and it is not working. But, my portal is not in global scope, it is in a separate scope.

Please review the below screenshot

 find_real_file.png

 

find_real_file.png

 

find_real_file.png

Rashi Kulshres1
Giga Contributor

Hi @Austin Portal ,

 

I followed the steps mentioned by you and also enabled the indexing of tags & now it is working. Thanks for help!