Can we search for keywords inside the attachment of a knowledge article in SNOW tool?

rajeshraya
Giga Expert

Hi,

One of my end users of SNOW asked if they can search for keywords inside the attachment of a knowledge article. Please let me know.

Thanks

Rajesh

2 REPLIES 2

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Out of box we do that automatically. "kb_knowledge" table is text indexed automatically and via global search we search in the attachments as well, as long as they are not binary files (so pdf, text, docx should work).


I just did   a quick test on my own instance with out of box configuration and I can get back results for keywords searched and present in KBs attachments.



Regards,


Sergiu


Sergiu,



      I need to include a link in a notification that searches an knowledge base article attachment with the same name as the short_description and gives a link to the attachment.   The knowledge base is "IT Services".   The code below was found here.   Do you have an idea of how to accomplish this?   When I manually search the knowledge base, a link to the attachment shows in the search results.   Unfortunately, I haven't been able to get the link in the email.   Any help is appreciated!



var link = 'https://instance.service-now.com/kb_find.do?sysparm_search=' + current.short_description + '&sysparm_nameofstack=kbpop&sysparm_kb_search_table=incident&sysparm_operator=IR_AND_OR_QUERY&sysparm_order=views&sysparm_domain_restore=false';  


template.print('<a href="' + link + '">Client to search knowledge</a>');