Ignore:
Timestamp:
2008-08-29T15:46:59+12:00 (16 years ago)
Author:
mdewsnip
Message:

No longer writes out the document/section number entries for Lucene, since it doesn't need this information any more (now that Lucene uses the Greenstone OIDs directly). This will only work if a custom lucenebuildproc isn't used, but the worst case scenario is that these entries will be unused in the infodb file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/basebuildproc.pm

    r16222 r17106  
    524524    &dbutil::write_infodb_entry($self->{'infodbtype'}, $infodb_handle, $section_OID, \%section_infodb);
    525525   
    526     # output a database entry for the document number
    527     if ($self->{'db_level'} eq "document") {
    528         &dbutil::write_infodb_entry($self->{'infodbtype'}, $infodb_handle, $self->{'num_docs'}, { 'section' => [ $doc_OID ] });
    529     }
    530     else {
    531         &dbutil::write_infodb_entry($self->{'infodbtype'}, $infodb_handle, $self->{'num_sections'}, { 'section' => [ $section_OID ] });
     526    # output a database entry for the document number, except for Lucene (which no longer needs this information)
     527    unless (ref($self) eq "lucenebuildproc")
     528    {
     529        if ($self->{'db_level'} eq "document") {
     530        &dbutil::write_infodb_entry($self->{'infodbtype'}, $infodb_handle, $self->{'num_docs'}, { 'section' => [ $doc_OID ] });
     531        }
     532        else {
     533        &dbutil::write_infodb_entry($self->{'infodbtype'}, $infodb_handle, $self->{'num_sections'}, { 'section' => [ $section_OID ] });
     534        }
    532535    }
    533536
Note: See TracChangeset for help on using the changeset viewer.