Fix Sphinx' returning of malformed or incorrectly encoded fragments / excerpts #70
Labels
bug
Something isn't working
needs-testing
issue may be solved, but some testing has to confirm this
search
Issues concerning the search engine/interface
Milestone
We currently have two workarounds, in
sphinx:highlight()
andsphinx:excerpts()
, for dealing with malformed or incorrectly encoded fragments / excerpts returned by Sphinx:svsal/modules/sphinx.xql
Line 705 in 7776af3
svsal/modules/sphinx.xql
Line 774 in 7776af3
Whenever a malformed / badly encoded text occurs, it is simply filtered out. This seems to successfully suppress ugly server errors, but we should find out why (and when) Sphinx produces erroneous fragments/excerpts in the first place.
Interestingly, if one tries to prevent such errors before sending excerpts to Sphinx, e.g. by handcrafted string replacings of suspicious characters, like so:
replace(replace($requestDoc, '%3D', '='), '%26amp%3B', '&')
,Sphinx' highlighting of qery terms in excerpts doesn't work in all cases.
(See also: 7776af3 and 03a62e3)
The text was updated successfully, but these errors were encountered: