- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2023 05:53 PM - edited 04-07-2023 03:43 AM
I am trying to display the 'Category of the Knowledge Article', the 'Knowledge Base Name' and the 'View Count' in the search results that appear on knowledge article cards in AI search.
I added these 'Table Fields' to the 'Taxonomy - Knowledge Search Results' EVAM View Config record (please see images for reference).
However, these fields are not appearing when I search for a knowledge article using AI Search in Employee Center.
Does anyone know how to make additional fields (like the 'Category' of the knowledge article) appear on the knowledge search results card in AI search (please see images for reference)?
Solved! Go to Solution.
- Labels:
-
AI Search
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 06:42 AM
Hi @Justin21 you can add a detail label separator to help with layout. The example below will show that as well as an optional parameter to move the location of the details 'above' the main part of the content.
{
"component": "sn-search-result-evam-card",
"staticValues": {
"imageType": {
"translatable": false,
"key": "icon"
},
"icon": {
"translatable": false,
"key": "document-outline"
},
"detailLabelOne":{
"key":"View Count:"
},
"detailLabelTwo":{
"key":"View Count:"
},
"detailLabelSeparator":{
"key":" | "
},
"detailPosition":{
"key":"above"
}
},
"mappings": {
"textHeaderLabelOne": "topic",
"textHeaderLabelTwo": "number",
"textHeaderLabelThree": "sys_updated_on",
"title": "ai_search_teaser_title",
"summary": "ai_search_teaser_text",
"detailValueOne":"sys_view_count",
"detailValueTwo":"sys_view_count",
"ariaLabel": "short_description"
},
"actionMappings": {
"clickAction": "navigation"
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 09:10 PM
This is perfect! Thank you @Shamus Mulhall!