[KinoSearch] revision 3552 SEGV during indexing

Henry henka at cityweb.co.za
Thu Jul 3 01:06:48 PDT 2008




There probably is an explanation for what's happening here.  My indexing
code is wrapped in an eval{} to be fault tolerant (especially when parsing
HTML) and I consistently get a segv after indexing a few files.

However, if I precede the relevant code with 'print Dumper $doc;', then
indexing occurs without error...

use KinoSearch::InvIndexer;
use KinoSearch::Doc;
use Schema;
use Data::Dumper;
...

eval {
  ...
  my $doc = {};
  $doc->{title} = gettext1();
  $doc->{body}  = gettext2();
  ...
  print Dumper $doc;   # <----- without this, the indexer drops a core
  my $ksdoc = KinoSearch::Doc->new(
      fields => $doc,
      boost  => $doc_boost);
  $invindexer->add_doc($ksdoc)
};



Weird.  Does anyone have an idea why this would start happening?

regards
Henry


_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch




More information about the kinosearch mailing list