How to show custom search source result as a top result.

Unique45
Mega Sage

Hello Community!
I have created new Search source 'Template Portal Page' and it is showing in the portal correctly:

 

Unique45_1-1713285081265.png

 

However, if I search for something and the Template portal page contains that word, it currently appears at the bottom of the results.

Unique45_2-1713285457047.png

How can I make it show as the top result?

 

Any help would be greatly appreciated!
Thanks in advanced!

Please mark correct/helpful if this helps you!
1 ACCEPTED SOLUTION

Unique45
Mega Sage

To achieve this, I made some changes in the Search Portal Page widget.

Please mark correct/helpful if this helps you!

View solution in original post

2 REPLIES 2

James Chun
Kilo Patron

Hi @Unique45,

 

Since you are using the Zing search, you would have to use the 'ts_weight' attribute to ensure the records in your search source have higher relevancy than the other search sources.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0639266

 

Cheers

Unique45
Mega Sage

To achieve this, I made some changes in the Search Portal Page widget.

Please mark correct/helpful if this helps you!