Ignore:
Timestamp:
2011-08-24T15:52:02+12:00 (13 years ago)
Author:
davidb
Message:

Code changes to support indexers that are provided through the extension mechanism

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/lucenebuilder.pm

    r24362 r24460  
    2626###########################################################################
    2727# /*
    28 #  *  @version 1.0 ?
     28#  *  @version 1.0 Automated incremental building
    2929#  *  @version 2.0 Incremental building assistance added, including
    3030#  *               remove_document_from_database which implements the granddad's
     
    3333#  *               perl script is. John Rowe
    3434#  *
     35#  *  @authro Waikato Digital Library Research Group
    3536#  *  @author John Rowe, DL Consulting Ltd.
    3637#  */
     
    117118    }
    118119    }       
    119    
    120120}
    121121
     
    227227    my $outhandle = $self->{'outhandle'};
    228228
     229    $self->pre_build_indexes($indexname);
     230
    229231    my $indexes = [];
    230232    if (defined $indexname && $indexname =~ /\w/) {
     
    233235    $indexes = $self->{'collect_cfg'}->{'indexes'};
    234236    }
    235     # have we got para index?
     237
     238    # Have we got para index?
    236239    foreach my $level (keys %{$self->{'levels'}}) {
    237240    if ($level =~ /paragraph/) {
    238         print $outhandle "Warning: Paragraph level indexing not supported by Lucene\n";
     241        print $outhandle "Warning: Paragraph level indexing not supported by Lucene/Solr\n";
    239242        last;
    240243    }
    241244    }
    242     # create the mapping between the index descriptions
     245
     246    # Create the mapping between the index descriptions
    243247    # and their directory names (includes subcolls and langs)
    244248    $self->{'index_mapping'} = $self->create_index_mapping ($indexes);
     
    246250    # build each of the indexes
    247251    foreach my $index (@$indexes) {
     252
    248253    if ($self->want_built($index)) {
    249254
     
    271276    }
    272277
    273     #define the final field lists
    274     $self->make_final_field_list();
     278    $self->post_build_indexes();
    275279}
    276280
Note: See TracChangeset for help on using the changeset viewer.