Change result pages for AI search

DJ DeJarnette
Tera Expert

Hey guys, new to AI Search.  We've added topics into our AI search results but when you click on the search results is takes us to the wrong page.  The search results are supposed to go to "id=portal_topic_template&topic_id=" but it instead goes to "id=form&table=topic&sys_id=".  I'm not really sure what we missed to direct the facet search results to the proper page. 

 

Can anyone point me in the right direction?

1 REPLY 1

pavani_paluri
Giga Guru

Hi @DJ DeJarnette ,

 

You’ll want to update the Search Source configuration for your Topic index so the result URL matches your portal route:

Steps:
Go to AI Search > Search Applications.

Open the application your portal uses.

Under Sources, find the source that indexes topic table (it might be named “Topic” or be part of a combined content source).

Open that source and find the Document URL or URL Template setting.

Change it from: id=form&table=topic&sys_id=${sys_id} to id=portal_topic_template&topic_id=${sys_id}
(Use your actual parameter names — ${sys_id} is replaced by the record ID in results.)

Save the source.

Re-index that source so the new URL is stored in each document.

 

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P