We're encountering a challenge with the Sitecore search function. Specifically, we're having difficulties when trying to locate web pages using certain keywords. Our investigation reveals that the root cause of this problem seems to be the absence of space between words at the end of each component.
- For illustration, let's consider a situation where one component ends with the word "worldwide." and the subsequent component begins with "Facts and Figures". In this case, the Sitecore search fails to find the page using these two words, as it interprets the content as "worldwide.Facts".
We attempted to resolve this by adding a non-breaking space element at the end of each component from the frontend, but this failed to deliver the desired outcome.
In our attempts to address this issue within the Document Extractor of Sitecore search, we have experimented with various JavaScript methods to retrieve content. At present, we are using 'body': $('#content').text()
. We have also tested innerText()
, textContent()
, and prop("innerText")
, but none of these methods have resolved the problem.
We would appreciate any suggestions on alternative methods or approaches that could help resolve this issue. Thank you in advance for your assistance.