Public
Valued Contributor

Seach and "&"

How do I get search to pick up on the "&" (ampersand) character in article titles and text? The search will yield results on tags that include the "&" but not yield results if the ampersand is in the actual title or body of the article. 

Kerrie T.


1 Reply 1
Honored Contributor

Hi @kthometz,

Lithium OOTB search works as expected. If you would like to achieve a similar behavior via API, then you must replace the special characters with their respective HTML entity name before search.

For example, if your search string includes '&' as in the message title 'Verify & validate', then your API should be something like this - 

/restapi/vc/search/messages?q=subject:Verify+amp;+validate

Hope this helps!

Thanks,
Srujana.

Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.