How to modify the contextual search result?

LearnerSubho
Mega Guru

Dear All,

How to add a filter in the contextual search result inside the notification email? e.g. I want to filter out some results based on the knowledge category.

I found that the OOB configuration is calling below macros and 'script include' to include the search result inside a notification

Macros :

1.cxs_results_header_email [protection policy : read-only]

2. cxs_result_email [protection policy : read-only]

Script include:

1. cxs_TableActions [protection policy : read-only]

I am not able to figure it out where to modify (even if I create a copy of the protected macros/scripts and use it in my custom configuration).

Do anyone have any idea how to implement this?

pradeepksharma kalai Mike Allen

10 REPLIES 10

LearnerSubho
Mega Guru

Can anyone please provide me any pointer or suggestion how to add a filter into the knowledge search OOB configuration?


Hello Subhankar,



I'm one of the developers of Contextual Search.



You can filter specific categories in the Search Context, but this will effect everything that uses the context.



For example, OOB if you navigate to the Incident Deflection Search Context and then click on the Resource Configurations tab you'll see a 'knowledge' configuration.   Clicking on that will give you a Condition property which will be applied to all searches.   Simply add an encoded query with the appropriate category filter.



Regards,



Chris


Thanks Chris for the response.



Let me try it. I will get back to you if I face any issue.



Thanks,


Subhankar


Hi Chris,

We are implementing this now and I have a couple questions:

  1. Can we modify the URLs for the articles to be Service Portal instead of the internal kb_view.do?
  2. Can we modify the "Related Search Results" macro header text to be something else?

I see most stuff is read only so I'm not 100% on how to achieve this. I'll try cloning the macros and also manipulating the returned JSON URLs to see if that will work.

Thanks,

Steve