The Zurich release has arrived! Interested in new features and functionalities? Click here for more

AI Search - Configure Result Layout

Joe1
Tera Expert

I'm looking at turning on AI Search for my instance, so I have been playing around with it in a sub-PROD environment. So far, it seems to be working well!

 

I know that people will expect Interactions to be searchable, so I added them to the index. I also figured out how to add facets so these can be filtered. So far, these work great. However, I can't seem to adjust how the search results appear.

See here:

Joe1_0-1715784295157.png

 

I would like to populate more data in these, such as who the Interaction was opened for, date and time, etc. Currently I just have the Short Description showing. I'd also like to get rid of the "Generic" text and replace it with something, you know, useful.

Thanks for your help!

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Hello, you can adjust this via the EVAM View Config Table [sys_ux_composite_data_template_predicate]. There you have the View Template Reference Field where you select a specific UX Template. These Templates are stored in the [sys_ux_composite_data_template] table.

View solution in original post

8 REPLIES 8

Thanks! I will give it a try!

Thanks! This got me to it. Had to do some tinkering but got it working!

@rojachiliveru1and @LearnerNitin --this is the answer.

Zmud1
Tera Contributor

@Joe1 hi, can you please tell me how you achieved the effect of adding interactions to the search results? 
Technically speaking I also managed to achieve this :

Zmud1_0-1735753511189.png



but I am very not-sure I did it correctly.



Yep! You are on the right track!

This is the template I set up for us. Note that we have a custom "subtype" field that we use:

{
    "component": "sn-search-result-evam-card",
    "staticValues": {
        "imageType": {
            "translatable": false,
            "key": "icon"
        },
        "icon": {
            "translatable": false,
            "key": "chat-outline"
        },
        "textHeaderLabelOne": {
            "translatable": true,
            "key": "Interaction"
        },
        "detailLabelOne": {
            "translatable": true,
            "key": "Type:"
        },
        "detailLabelTwo": {
            "translatable": true,
            "key": "Subtype:"
        },
        "detailLabelThree": {
            "translatable": true,
            "key": "Opened for"
        },
        "detailLabelFour": {
            "translatable": true,
            "key": "Opened by"
        },
        "detailLabelFive": {
            "translatable": false,
            "key": "Created"
        },
        "requireLabelAndValue": {
            "translatable": false,
            "key": "true"
        },
        "detailPosition": {
            "translatable": false,
            "key": "above"
        },
        "detailLabelSeparator": {
            "translatable": false,
            "key": "|"
        }
    },
    "mappings": {
        "titleLabel": "ai_search_teaser_title",
        "title": "short_description",
        "textHeaderLabelTwo": "number",
        "detailValueOne": "type",
        "detailValueTwo": "subtype",
        "detailValueThree": "opened_for",
        "detailValueFour": "opened_by",
        "detailValueFive": "opened_at"
    },
    "actionMappings": {
        "clickAction": "navigation"
    }
}