Near the top of gsdl/perllib/mgbuilder.pm is the following line which sets
the maximum allowable document size to 12 Mb.
$maxdocsize = 12000;
If you change this to some suitably large value it should solve your
problem. I'm not sure exactly why this limitation is applied though I think
it might simply be to prevent MG from consuming too much memory. A modern PC
could no doubt cope with setting this value to something much larger though.
----- Original Message -----
From: "Richard Gartner" <email@example.com>
Sent: Monday, September 01, 2003 10:22 PM
Subject: [greenstone-users] Build fails on large document
> Hello everyone,
> I'm trying to build a collection of largish documents (about 65MB) full
> of OCR'd text: the build fails during the "creating index directory"
> phase with the error: "mg_passes : The document is in excess of 12288000
> chars long". Is there a system limit to document length, and if so is
> there any way to get around it?
> Richard Gartner <firstname.lastname@example.org>
> greenstone-users mailing list