[Bio] / Sprout / AttrDBRefresh.pl Repository:
ViewVC logotype

Diff of /Sprout/AttrDBRefresh.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7, Fri Dec 15 08:15:24 2006 UTC revision 1.8, Tue Jan 9 01:49:08 2007 UTC
# Line 82  Line 82 
82  Rather than attaching attributes to the word "Subsystem", we attach them to the  Rather than attaching attributes to the word "Subsystem", we attach them to the
83  subsystem itself.  subsystem itself.
84    
85    =item re_index
86    
87    If specified, the text search index will be rebuilt.
88    
89  =back  =back
90    
91  =cut  =cut
# Line 108  Line 112 
112                                                load => ["", "file from which to load attribute data"],                                                load => ["", "file from which to load attribute data"],
113                                                loadKey => ["", "file from which to load attribute key data"],                                                loadKey => ["", "file from which to load attribute key data"],
114                                                backup => ["", "file to which attribute data should be dumped"],                                                backup => ["", "file to which attribute data should be dumped"],
115                                                hh_copy => ["", "if specified, the attributes used by the collections system will be converted"]                                                hh_copy => ["", "if specified, the attributes used by the collections system will be converted"],
116                                                  re_index => ["", "if specified, the text search index will be rebuilt"]
117                                             },                                             },
118                                             "",                                             "",
119                                             @ARGV);                                             @ARGV);
# Line 175  Line 180 
180              Trace("Load statistics:\n" . $stats->Show()) if T(2);              Trace("Load statistics:\n" . $stats->Show()) if T(2);
181          }          }
182      }      }
183        if ($options->{re_index}) {
184            # We want to rebuild the text search index.
185            $ca->CreateSearchIndex('HasValueFor');
186            Trace("Search index created on \"HasValueFor\" table.");
187        }
188      Trace("Processing complete.") if T(2);      Trace("Processing complete.") if T(2);
189  };  };
190  if ($@) {  if ($@) {

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3