How to prevent attachments from displaying in search results?

MG Casey
Mega Sage

Hi,

I need a way to prevent a knowledge article's attachments from displaying in the search results. Example:

find_real_file.png

With the article's 3 attachments, the search results screen is way enlarged and a bit ugly.

I've messed around with each of the kb_knowledge table's dictionary attributes: entry:email_client=true,text_index_filter_junk=false,attachment_index=true,synch_attachments=false,text_index_attachment_displayed=false

But none of them seem to be the trigger for this.

Any ideas?

8 REPLIES 8

Harish Murikina
Tera Guru

Open the global text property



global search.JPG



Once you open the property you can see "List of tables (comma-separated) that will not appear as options when setting up Global Text Search tables." field


in that enter sys_attachment after that you wont get any attachment in global search



Regards,


Harish.


Ya, that works for the Global Text Search, but I am looking to affect the knowledge search which is what my self-service users will primarily be using. Any ideas on that one? (I did update that property, but it did not affect the knowledge search results.)


I believe the only way it to modify the out of the box kb_search_results UI Macro and remove the code that queries for attachments.


Ha, yep I was worried it would come to that. I'll have to dive into that macro.