Changeset 24497 for gs3-extensions

Show
Ignore:
Timestamp:
26.08.2011 17:33:20 (8 years ago)
Author:
davidb
Message:

Refinement to use $site information in multi-core name

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/perllib/solrbuilder.pm

    r24483 r24497  
    263263    my @in_file_list = ( "solrconfig.xml", "stopwords.txt", "stopwords_en.txt", 
    264264             "synonyms.txt", "protwords.txt" ); 
    265  
     265  
    266266    foreach my $file ( @in_file_list ) { 
    267267    my $in_filename = &util::filename_cat($in_dirname,$file.".in"); 
     
    369369    my $idx = "idx"; 
    370370 
     371    my $site = $self->{'site'}; 
     372 
    371373    foreach my $level (keys %{$self->{'levels'}}) { 
    372374     
    373375    my ($pindex) = $level =~ /^(.)/; 
    374376     
    375 ##  my $llevel = $mgppbuilder::level_map{$level}; 
    376 ##  my $core = $collection."-".lc($llevel); 
    377          
    378377    my $core = $collection."-".$pindex.$idx; 
     378 
     379    # prefix site if exists (e.g. Greenstone 3) 
     380    $core = "$site-$core" if defined $site; 
    379381 
    380382    # if collect==core already in solr.xml (check with STATUS)