Search for Duplicates on KB articles not working

Nitin_NOW
Tera Guru

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!

7 REPLIES 7

Uncle Rob
Kilo Patron

Can you screenshot the output?


You mean the list of articles I see once i hit the button ?


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.


Below are the results I see


find_real_file.png



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!