| 
      
            Lines 34-39
          B<rebuild_elasticsearch.pl>
      
      
        Link Here
      
     | 
  
        
          | 34 | 
          [B<--desc>]  | 
          34 | 
          [B<--desc>]  | 
        
        
          | 35 | 
          [B<-bn|--bnumber>]  | 
          35 | 
          [B<-bn|--bnumber>]  | 
        
        
          | 36 | 
          [B<-ai|--authid>]  | 
          36 | 
          [B<-ai|--authid>]  | 
        
            
               | 
               | 
              37 | 
              [B<--modified-since=DATETIME>]  | 
            
        
          | 37 | 
          [B<-p|--processes>]  | 
          38 | 
          [B<-p|--processes>]  | 
        
        
          | 38 | 
          [B<-v|--verbose>]  | 
          39 | 
          [B<-v|--verbose>]  | 
        
        
          | 39 | 
          [B<-h|--help>]  | 
          40 | 
          [B<-h|--help>]  | 
        
  
    | 
      
            Lines 87-92
          repeated.
      
      
        Link Here
      
     | 
  
        
          | 87 | 
          Only index the supplied authority id, mostly for testing purposes. May be  | 
          88 | 
          Only index the supplied authority id, mostly for testing purposes. May be  | 
        
        
          | 88 | 
          repeated.  | 
          89 | 
          repeated.  | 
        
        
          | 89 | 
           | 
          90 | 
           | 
        
            
               | 
               | 
              91 | 
              =item B<--modified-since=DATETIME>  | 
            
            
              | 92 | 
               | 
            
            
              | 93 | 
              Only index records modified since supplied datetime. It cannot be used with  | 
            
            
              | 94 | 
              --bnumber or --authid options.  | 
            
            
              | 95 | 
               | 
            
        
          | 90 | 
          =item B<-p|--processes>  | 
          96 | 
          =item B<-p|--processes>  | 
        
        
          | 91 | 
           | 
          97 | 
           | 
        
        
          | 92 | 
          Number of processes to use for indexing. This can be used to do more indexing  | 
          98 | 
          Number of processes to use for indexing. This can be used to do more indexing  | 
        
  
    | 
      
            Lines 128-133
          my $verbose = 0;
      
      
        Link Here
      
     | 
  
        
          | 128 | 
          my $commit = 5000;  | 
          134 | 
          my $commit = 5000;  | 
        
        
          | 129 | 
          my ($delete, $reset, $help, $man, $processes);  | 
          135 | 
          my ($delete, $reset, $help, $man, $processes);  | 
        
        
          | 130 | 
          my ($index_biblios, $index_authorities);  | 
          136 | 
          my ($index_biblios, $index_authorities);  | 
        
            
               | 
               | 
              137 | 
              my $modified_since;  | 
            
        
          | 131 | 
          my (@biblionumbers,@authids);  | 
          138 | 
          my (@biblionumbers,@authids);  | 
        
        
          | 132 | 
          my $desc;  | 
          139 | 
          my $desc;  | 
        
        
          | 133 | 
           | 
          140 | 
           | 
        
  
    | 
      
            Lines 142-147
          GetOptions(
      
      
        Link Here
      
     | 
  
        
          | 142 | 
              'desc'          => \$desc,  | 
          149 | 
              'desc'          => \$desc,  | 
        
        
          | 143 | 
              'bn|bnumber=i'  => \@biblionumbers,  | 
          150 | 
              'bn|bnumber=i'  => \@biblionumbers,  | 
        
        
          | 144 | 
              'ai|authid=i'   => \@authids,  | 
          151 | 
              'ai|authid=i'   => \@authids,  | 
        
            
               | 
               | 
              152 | 
                  'modified-since=s' => \$modified_since,  | 
            
        
          | 145 | 
              'p|processes=i' => \$processes,  | 
          153 | 
              'p|processes=i' => \$processes,  | 
        
        
          | 146 | 
              'v|verbose+'    => \$verbose,  | 
          154 | 
              'v|verbose+'    => \$verbose,  | 
        
        
          | 147 | 
              'h|help'        => \$help,  | 
          155 | 
              'h|help'        => \$help,  | 
        
  
    | 
      
            Lines 193-198
          if ($slice_count > 1) {
      
      
        Link Here
      
     | 
  
        
          | 193 | 
              $iterator_options{slice} = { index => $slice_index, count => $slice_count }; | 
          201 | 
              $iterator_options{slice} = { index => $slice_index, count => $slice_count }; | 
        
        
          | 194 | 
          }  | 
          202 | 
          }  | 
        
        
          | 195 | 
           | 
          203 | 
           | 
        
            
               | 
               | 
              204 | 
              if ($modified_since) { | 
            
            
              | 205 | 
                  $iterator_options{modified_since} = $modified_since; | 
            
            
              | 206 | 
              }  | 
            
            
              | 207 | 
               | 
            
        
          | 196 | 
          if( $desc ){ | 
          208 | 
          if( $desc ){ | 
        
        
          | 197 | 
              $iterator_options{desc} = 1; | 
          209 | 
              $iterator_options{desc} = 1; | 
        
        
          | 198 | 
          }  | 
          210 | 
          }  | 
        
            
              | 199 | 
              -   | 
               | 
               |