Search Returns Catalog Results (Before Knowledge)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2022 09:00 AM - edited 11-16-2022 09:13 AM
Hello everyone,
Whenever my Fallback Search topic is executed, it always displays results from the catalog first instead of knowledge bases. How do I change the order to display knowledge articles first?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2022 10:03 AM
Hi @Raj64 ,
You can make below changes
Setting the property Interleave Results = false will present the search results in order of relevancy but grouped by search resource eg. knowledge articles appearing first and then catalog items.
reference:-
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0749166
If that field is readonly then run below code in background script :-
Write down proper encoded query
var gr=new GlideRecord("cxs_searcher_config");
gr.addEncodedQuery("active=true^name=Knowledge and catalog");
gr.query();
if(gr.next()){
gr.interleave='false';
gr.update();
}
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-16-2022 10:25 AM
Hi Gunjan,
Interleave is already false (unchecked).