Blog Sections Open
Why AjaxSearch Highlighting Can Break Result Excerpts
A practical debugging note for AjaxSearch result formatting when the excerpt and the matched title stop looking clean.
AjaxSearch does two jobs at once: it finds relevant content and it tries to present that relevance visually. Problems begin when the highlight layer becomes too aggressive and breaks the resulting excerpt markup.
The source issue pointed to _getExtract and span injection around matches. That is a strong signal that the search result generation itself is working, but the highlighting stage is producing ugly or unstable output.
What to inspect
- Whether the highlight wrapper is inserted into already-fragmented HTML.
- Whether the excerpt source is plain text or raw content with markup.
- Whether title and body extraction are handled consistently.
In older Evo builds, cleaner excerpts usually come from simplifying the extract source first and only then applying lightweight highlighting. Good search output should prioritize readability over aggressive emphasis.
Choosing Between Absolute and Relative Paths in Evolution CMS Templates
How to keep asset URLs, snippet outputs, and generated links consistent by understanding when absolute paths and relative paths should each be used.
Why Simple IP Geolocation Scripts Return Empty City Data
How to debug IP-based geolocation in Evolution CMS when the external service responds but the expected city field is still empty.