Search for Duplicates on KB articles not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2017 07:35 AM
Hello Everyone
We have an issue with 'Search for Duplicates' UI action button. As per OOTB code we have, the search results are based on Short description, category and Article type. As per our business need I was told to restrict the search only for 'Short Description'. I have just removed current.topic, current.type from the query.
if (current.changes())
current.update();
// redirect to view article
gs.setRedirect("kb_find.do?sysparm_search=" + encodeURI(current.short_description) + "&sysparm_operator=IR_OR_QUERY&sysparm_order=relevancy&sysparm_stack=no&sysparm_query=sys_id!=" + current.sys_id);
I see this is not working and my search results are still coming out based on category and article type. Is there anything i have do more ?
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2017 08:53 AM
Its not the same as a database query. ?sysparm_search= is basically just pre-populating the search field, which then operates by its own rules.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2017 08:59 AM
Ahh ok. So, how can we we overcome this ? Do I need to search for any other scripts, rules? I did not find any of such kind.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2017 08:47 AM
Hello Robert
Any updates on this again?
Regards!