Ignore:
Timestamp:
2011-08-26T00:22:29+12:00 (13 years ago)
Author:
davidb
Message:
Reworking of code that detects existing running instance of Solr/Jetty server. This was due to Windows version of Perl not implementing '' on an open call. Code currently messy and needs a further tidy up.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/solr/trunk/src/bin/script/solr_passes.pl

    r24453 r24483  
    5858sub open_java_solr
    5959{
    60   my ($collect, $doc_tag_level,$full_builddir,$indexdir,$removeold) = @_;
     60  my ($collect, $ds_idx,$full_builddir,$indexdir,$removeold) = @_;
    6161
    6262  # if removeold set, then delete the curring $full_builddir
     
    7474
    7575  # Now start up the solr-post command
    76   &solrutil::open_post_pipe($collect,$doc_tag_level);
     76  &solrutil::open_post_pipe($collect,$ds_idx);
    7777}
    7878
     
    224224
    225225  if ($filtered_argc < 5) {
    226     print STDERR "Usage: solr_passes.pl [-removeold|-verbosity num] collect \"text\"|\"index\" doc-tag-level build-dir index-name\n";
     226    print STDERR "Usage: solr_passes.pl [-removeold|-verbosity num] collect \"text\"|\"index\" {d|s}idx build-dir index-name\n";
    227227    exit 1;
    228228  }
     
    230230  my $collect       = $filtered_argv[0];
    231231  my $mode          = $filtered_argv[1];
    232   my $doc_tag_level = $filtered_argv[2];
     232  my $ds_idx        = $filtered_argv[2];
    233233  my $full_builddir = $filtered_argv[3];
    234234  my $indexdir      = $filtered_argv[4];
     
    237237  # documents, not if we are just storing the text
    238238  if ($mode eq "index") {
    239     open_java_solr($collect, $doc_tag_level, $full_builddir, $indexdir, $removeold);
     239    open_java_solr($collect, $ds_idx, $full_builddir, $indexdir, $removeold);
    240240  }
    241241
Note: See TracChangeset for help on using the changeset viewer.