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 07:47 AM
Can you screenshot the output?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2017 08:36 AM
You mean the list of articles I see once i hit the button ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2017 08:36 AM
Yes. Trying to figure out what you mean by "and my search results are still coming out based on category and article type."
Trying to picture the output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2017 08:45 AM
Below are the results I see
What I mean is earlier even after i edit the code and had put only 'current.short_description' shouldn't the search must display the articles based on the short description of that article which I have searched. ? In my case this is not happening, it displays all the articles based on category, article type as well along with short description.
Regards!