logo

NJP

Configure Code Search for better result

Import · May 21, 2024 · article

Code search is a useful feature for finding specific scripts in a large codebase. I recently discovered the code search can be configured to significantly improve the search experience and yield more accurate results.

Well, the code search feature we know from the studio is also available here. This is not the best looking page but it does the job.

https://instance.service-now.com/sn%5Fcodesearch%5FCodeSearchExampleUse.do

The configuration to the code search lies in here. Just create an entry in the related list and include any table and required field from that table to included in the search and pretty much thats it.

https://instance.service-now.com/nav_to.do?uri=sn_codesearch_search_group.do?sys_id=9a44f352d7120200...

added filter condition as extra field to search for

code search.png

Result shows the BR’s matching filter condition field

result.png

Thanks,

Murali

View original source

https://www.servicenow.com/community/now-platform-articles/configure-code-search-for-better-result/ta-p/2938880