Re-Indexing MojoMojo Pages on Edit
Overview
MojoMojo does not properly re-index the entire page collection after an edit. This problem occurs in only some environments. Right now it looks like it occurs only in mod_perl
mod_perl
It appears that running MojoMojo under mod_perl has issues with KinoSearch. In particular, when one makes an edit new index file is created which is not complete. i.e. it does not index every document. This is easy to see in the size reduction of the index and searching on a particular page that doesn’t get re-indexed.
Stand Alone Server
As a comparison the standalone catalyst catalyst server will create a new .cfs index file and update segments but it doesn’t leave the old file around and it re-indexes completely.
Apache and External FastCGI
I have setup three external fastcgi processed that are being front-ended by apache. Let’s see what happens to the index after freshly building it and editing a page:
index/ After Fresh Index Build
rm index/*
restart mojomojo
request a page
-rw-r--r-- 1 hunter users 191875 19 abr 13:15 _27.cfs -rw-r--r-- 1 hunter users 28 19 abr 13:15 segments
index/* After Page Edit
-rw-r--r-- 1 hunter users 193154 19 abr 13:18 _29.cfs -rw-r--r-- 1 hunter users 28 19 abr 13:18 segments
Showing changes from previous revision. Removed | Added
