Jobs Script
Permalink
I recently had a situation with the Index Search Engine Job script. My site was at 600 pages and it started to create a memory error at 128M MEMORY ALLOWED.
Why does it take so much memory for indexing only 600 pages?
My question is, how can I modifiy the search index job script so I can specify to index ALL the Subpages of a Particular PAGE ID?
ex.: Not indexing all the site but only the subpages under a specific page ID.
I have 13 categories page that contain many subpages each. so instead of doing a big ReIndexAll I want to split the job in 13. Luckly it will cut the memory use.
I appreciate your help :)
Why does it take so much memory for indexing only 600 pages?
My question is, how can I modifiy the search index job script so I can specify to index ALL the Subpages of a Particular PAGE ID?
ex.: Not indexing all the site but only the subpages under a specific page ID.
I have 13 categories page that contain many subpages each. so instead of doing a big ReIndexAll I want to split the job in 13. Luckly it will cut the memory use.
<?php /** * * Responsible for loading the indexed search class and initiating the reindex command. * @package Utilities */ defined('C5_EXECUTE') or die(_("Access Denied.")); class IndexSearch2 extends Job { public $jNotUninstallable=1; public function getJobName() { return t("Index Search Engine2"); } public function getJobDescription() { return t("Index the site to allow searching to work quickly and accurately."); }
Viewing 15 lines of 33 lines. View entire code block.
I appreciate your help :)