How to replace special characters in searchterm in the query?
Hi We are using coveo cloud instance. As per my requirements I need to replace some of the special characters in the search term that is entered in the search box. Eg. Test$USD should be passed as TestUSD.
I am trying to do this inside the event
handleDoneBuildingQuery: function (e, data) and getting the expected result.
Code snippet as
var searchterm = data.queryBuilder.expression.parts; searchterm = searchterm.replace(/\$/g,''); data.queryBuilder.expression.parts = searchterm;
Anyone came across such scenario? Wanted to understand is the right place to hook on to search term before getting the result.