We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Changing the filter by page of search knowledge

Henk5
Tera Contributor

Anyone know how to add more fields to the filter by part of the search knowledge screen.

Using Helsinki Patch 4 with knowledge v3.

Out of the box there is the Knowlegde --> homepage which can be used as a good starting point for searching. If you find articles you can add more filters. We have added some extra fields to the knowledge articles (owner group, customers, CI types). Is there a way to add/remove fields to this part of the screen?

Search Knowledge.JPG

12 REPLIES 12

Sarup Paul
ServiceNow Employee

The KM v3 platform pages are not customizable. There is some configurability that can be achieved through the Knowledge properties.



Recommendation is to upgrade to H/I to use Service Portal experience to leverage customizability, however the stronger recommendation is to wait for Jakarta, where we have released a highly configurable end-user KM experience on the Service Portal.


Navs1
Kilo Contributor

Is this possible with kingston release.

I need to add a new filter for search.Could any one help me on this?

 

Thanks..

 

Sarup Paul
ServiceNow Employee

Use the KM SP plugin, and then you can easily configure the Knowledge end user experience, including search facets

Prince Mendoza1
Kilo Contributor

We are in London release and we would also like to hide the Author filter as well. We tried setting glide.knowman.search.show_author to false as discussed above. Similarly, we tried unchecking "Show author in knowledge search results" in Knowledge Properties.

 

Is it still possible to hide the Authors filter in London release? It feels like we are just missing something so if anyone can point us to the right direction, it would greatly be appreciated.

 

find_real_file.png

glide.knowman.search.show_author and other property are for hiding the author information from the search result content. It will not work for the facets.

If you need to remove the author facet follow below step:

For removing it from "Knowledge Portal" search page with URL "/kb?id=kb_search"

- Open the search page as admin

- ctrl + click on the widget

- Click "Page in Designer"

-Look for "Author" widget and delete the instance.

 

For removing it from "Service Portal" search page with URL "/sp?id=search"

- Open "sp_search_source" table

- Open "Knowledge Bases" search source

- Under "Facet generation script" remove the author property from the JSON passed to the  

new  KBPortalServiceImpl().getAllFacets function around line number 39-40

It will be something like this:

"author":{"aggregate":false,"include_null":false,"orderby":"label","table":"kb_knowledge","value":[]}

- And comment below code for author around line number 48

createVariableFacetFromKB("Author", "author", kbFacetObj.author, 'label');

 

Note : Below changes may result in customisation of the relevant script.