Description
When trying to search a term that contains the "&" character, using the global search in the ess portal (which uses the search_content.do), returns no results.
Searching for the same term using the global search on the platform (which uses the textsearch.do) finds results.
Searching for the same term using the global search on the platform (which uses the textsearch.do) finds results.
Steps to Reproduce
- Navigate to Knowledge > Create New.
- Create a new KB article.
- In Short Description type AT&T.
- Save the article.
- In the global search of the navigation page, search for the term AT&T.
The article you created appears in the search results. - Open the ESS portal.
- In the global search, search for AT&T.
Note that the record is not found and the text is cut to AT.
Workaround
- Edit the ContentSearch Processor by navigating to:
https://<your_instance_name>.service-now.com/nav_to.do?uri=sys_processor.do?sys_id=b1627a1e0a0a0b12004617aa01ea9392 - Change the line:
g_response.sendRedirect(pl + '?sysparm_search=' + g_request.getParameter('sysparm_search'));
to:
g_response.sendRedirect(pl + '?sysparm_search=' + GlideStringUtil.urlEncode(g_request.getParameter('sysparm_search'))); - Click Save.
- Log out of the current session.
- Close the current browser.
Note: Ensure that you revert to the base system version of the ContentSearch Processor before upgrading the instance.
Related Problem: PRB619544