How to modify the contextual search result?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 03:45 AM
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?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2016 02:35 AM
Can anyone please provide me any pointer or suggestion how to add a filter into the knowledge search OOB configuration?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2016 03:34 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2016 07:11 AM
Thanks Chris for the response.
Let me try it. I will get back to you if I face any issue.
Thanks,
Subhankar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2020 08:09 AM
Hi Chris,
We are implementing this now and I have a couple questions:
- Can we modify the URLs for the articles to be Service Portal instead of the internal kb_view.do?
- 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