AI Search Hit Highlighting

Brad Warman
Giga Sage

Hi all,

Can anyone shed some light on how to add hit highlighting to AI Search results? Once we enabled AI Search, we lost all hit highlighting. I've followed the instructions on how to change it here, but it still doesn't appear. The border changes in the article work as expected, but the hit highlighting doesn't. Any ideas?

Cheers,

Brad

1 ACCEPTED SOLUTION

I figured it out. We were attempting to use meta_description as the summary mapping for knowledge articles, but we needed to change the summary mapping to use ai_search_teaser_text and also add ai_search_teaser_text to the custom fields on the EVAM view config page.

ServiceNow must have script(s) that only apply the hit highlighting to the ai_search_teaser_text custom field and not others.

 

View solution in original post

4 REPLIES 4

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Highlighting won't work in AI search, if you get any other information do share with me as well.

Please hit like and mark my response as correct if that helps

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Brian Bakker
ServiceNow Employee
ServiceNow Employee

Hello Brad,

Does the sp_css_include record have a similar entry, as follows -

sn-search-results-container, sn-search-combobox {
--now-color--primary-0: rgb(40,103,178) !important;
}
Which RGB colours are you using? Search for rgb(40,103,178) in Google and it will show the colour used for the highlighting. Did you link it to the sp_theme record associated with the Service Portal.
 
Best regards,
Brian

Hi Brian,

Yeah I have that sp_css_include record and using rgb(177,211,74). I just created the same sp_css_include record in our UAT instance and it is working correctly. Any ideas on other settings or CSS variables to check?

Cheers,

Brad

I figured it out. We were attempting to use meta_description as the summary mapping for knowledge articles, but we needed to change the summary mapping to use ai_search_teaser_text and also add ai_search_teaser_text to the custom fields on the EVAM view config page.

ServiceNow must have script(s) that only apply the hit highlighting to the ai_search_teaser_text custom field and not others.