{"issue":{"created_at":"2011-11-29T06:25:16Z","state":"closed","updated_at":"2011-11-29T06:25:30Z","user":{"gravatar_id":"256406243346b9253f8610fb1d1e05f6","id":1215373,"url":"https://api.github.com/users/importer","avatar_url":"https://secure.gravatar.com/avatar/256406243346b9253f8610fb1d1e05f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"importer"},"comments":12,"body":"Hi,\nI'm working on my third Typolight-site with some larger dan average pages (~400 kB text). The problem is that these are completely skipped by the search engine. The limit is about 16 kB per page.\n\nThe cause seems to be the preg_replace expressions in search.php (lines 97-99, 115-116). The resulting variables ($strContent, $strHead, $strBody) are empty as the page size exceeds ~16 kB.\nAdding preg_last_error() to the code  resulted in several 'PREG_BACKTRACK_LIMIT_ERROR'. A solution for this is setting 'pcre.backtrack_limit' in php.ini to a much higher value than the default 100000 (1000000 worked for me). However, I can change this on my local server, not at the provider's server. \n\nPreg_replace itself is limited only by internal memory and I found several references of success with much bigger files but not complex pattern.\n\nI hope you can work out a solution for this. \n\nGreetings\nPieter\n\nTL is really a great product. Well done.\n\n[Download the attachments](http://www.contao.org/tl_files/tickets/546.zip \"Download the attachments of this ticket\")\nRelated issues: #2520, #2949\n\n--- _Originally created by pdreef on February 26th, 2009, at 12:55am (ID 546)_","assignee":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"id":2378832,"number":546,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"Defect","color":"bd2c00","url":"https://api.github.com/repos/contao/test/labels/Defect"},{"name":"framework","color":"e6e6e6","url":"https://api.github.com/repos/contao/test/labels/framework"}],"title":"Large pages are not indexed for search engine","closed_at":"2011-11-29T06:25:30Z","html_url":"https://github.com/contao/test/issues/546","url":"https://api.github.com/repos/contao/test/issues/546","milestone":{"created_at":"2011-11-29T05:26:33Z","state":"closed","closed_issues":50,"due_on":null,"creator":{"gravatar_id":"87d2e5aefadcb310f9155df28c2b3582","id":1192057,"url":"https://api.github.com/users/leofeyer","avatar_url":"https://secure.gravatar.com/avatar/87d2e5aefadcb310f9155df28c2b3582?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"leofeyer"},"number":1,"description":"TYPOlight 2.7.0 (minor release)","title":"2.7.0","open_issues":0,"url":"https://api.github.com/repos/contao/test/milestones/1"}},"action":"closed"}