Change Results Display for KB Articles in AI Search results

keithl22
ServiceNow Employee
ServiceNow Employee
Does anyone know if there is a way to change the summary with AI Search results? The customer is looking to show the first 2500 characters of the article (like we do in Zing) instead of the phrase concerning the search term.
 
find_real_file.png
1 ACCEPTED SOLUTION

Gerard Dwan
ServiceNow Employee
ServiceNow Employee

Hi keithl22, 

You'll need to adjust your EVAM configuration and template. Your picture example refers to the Knowledge table, so just a quick walkthrough for that case: 

  1. Navigate to EVAM > View Configurations
  2. Find Name='Knowledge Search Results' 
  3. Edit the table fields to include the field you would like to display 
  4. Navigate to EVAM > View Templates 
  5. Find Name='Knowledge Search Template'
  6. Change the value for 'summary' from 'ai_search_teaser_text' to whatever field you intend to use for the text/teaser 

This should include the entire contents of the field. 

I personally like the teaser as configured, but understand that it may be an unexpected change. 

View solution in original post

9 REPLIES 9

Gerard Dwan
ServiceNow Employee
ServiceNow Employee

Hi keithl22, 

You'll need to adjust your EVAM configuration and template. Your picture example refers to the Knowledge table, so just a quick walkthrough for that case: 

  1. Navigate to EVAM > View Configurations
  2. Find Name='Knowledge Search Results' 
  3. Edit the table fields to include the field you would like to display 
  4. Navigate to EVAM > View Templates 
  5. Find Name='Knowledge Search Template'
  6. Change the value for 'summary' from 'ai_search_teaser_text' to whatever field you intend to use for the text/teaser 

This should include the entire contents of the field. 

I personally like the teaser as configured, but understand that it may be an unexpected change. 

keithl22
ServiceNow Employee
ServiceNow Employee

Thanks @Gerard Dwan . I also prefer it as configured. So do I need to re-index for the changes made to take effect? I have modified the 2 records as follows and it is still showing the ai_search_teaser_text. 

find_real_file.png

 

find_real_file.png

Gerard Dwan
ServiceNow Employee
ServiceNow Employee

Interesting. I'm not sure what adding it to the custom fields does in the case of text. I was able to get the behavior you're looking for with this configuration:

find_real_file.png

 

find_real_file.png

 

find_real_file.png

 

It's a front end change in this case, so no re-indexing needed, just saving the EVAM template and configuration. 

I *thought* I needed the Article Body from the table, which I would add, but for some reason it's working without.