Forum Discussion

ingelby-darren's avatar
7 years ago

API/Context object for spell corrected search term.

Hi,


We're looking at adding a custom component to the search results page that will surface a subset of the results in a different format.


However, on the community in question we've got the automatic spell correction on.

Now we can get the original search term using http.request.parameters.name.get("q", "" ), but is there a way to get the adjusted (post spell checked) term through freemarker rather than having to ajax it off the page?

 

Thanks in advance.