Issue Bug Closed

#14978Search Result Rendering is very slow, when showing large embedded Dokuments (pdf)

Paul Garstenauer 09/19/05, 17:04 updated 06/27/08, 10:48

Description

We had a Typo3 based Document Management, where we used the indexed search for a fulltext search in the embedded documents. PDFs with more than 100 pages (but smaller as well) slow the rendering process down, so it took longer than 2 minutes for the results to appear.

I found out that most of the time (94%!!!) is consumed in line 1702 of class.tx_indexedsearch.php

$str = ereg_replace(‘[[:space:]]+’,’ ‘,$str);

and Alex from TUG Austria proposed using

$str = preg_replace(‘/\s\s+/’, ‘ ‘, $str);

instead, which works fine with me.

hth
Paul

(issue imported from #M1464)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.