Increasing Search Index Page Maximum
Permalink
I'd like to increase the search indexing page maximum to 600, since the intranet I created with Concrete5 has around 500 pages currently. How do I do that? At this point it has been trying to index with a maximum of 200 pages since last week.
Thanks for the help,
Spencer
Thanks for the help,
Spencer
The 200 page maximum was originally set to address bug in a previous version of the core. It's since been corrected, so if you want to up the max page limit, you should be able to do so without issue (provided you're on the current version of the core).
So taking a look at concrete/libraries/database_indexed_search.php, we see
You can override this in config/site.php by adding this line (I used 600 for example):
I don't have a huge site handy to test it on, but I believe it should work. Doing a var dump on PAGE_SEARCH_INDEX_BATCH_SIZE without the override returns an integer of 200; adding the override produces 600.
You could also change the interval between re-indexes in the same manner (if you wanted the indexing to run more or less frequently), setting PAGE_SEARCH_INDEX_LIFETIME to something else. Default seems to be 259200 seconds (or 72 hours).