Interesting idea. You'll need a script to copy across the databases. The tables (found by looking at all the <sql statements in the search script) are html, refs, and categories. The "live" database for a profile can be found in the options table of the testdb database: "select String sourcedb from options where Profile='sourceprofile'"
refs can come across unchanged:
<sql db=$sourcedb row "select * from refs">
<sql db=$destdb novars "insert into refs values($Url,$Ref)"></sql>
</sql>
You'll use a similar construct to copy the other tables.
For categories you'll need to find the max category in the destination database: "select max(convert(Catno,'int')) Maxcatno from categories". Then add $Maxcatno to every source category before inserting into the destination db.
For html you'll need to add the $Maxcatno to each category for each record before inserting into the destination.
<$ret=(convert($Catno, 'varchar' ))>
<split nonempty row "," $ret>
<$x=($Maxcatno+$ret)>
<$newcatno=$newcatno $x>
</split>
<sum "%s," "" $newcatno>
<substr $ret 1 -1>
<$newcatno=$ret>
<sql novars "insert into html values($id,$Hash, $Size,$Visited,$Dlsecs,$Depth,$Url,$Title,$Body, $Keywords,$Description,$Meta,$newcatno,$Modified, $NextCheck,$Views,$Clicks,$CTR,$Pop,$MimeType,$Charset)"></sql>
Then, of course, you need to update the metamorph index. Rather than calling "dowalk/reindex.txt" which will drop and recreate the whole index it would be better to just update it. See the following for adding a new entry point to update instead of recreate the index.
http://thunderstone.master.com/texis/ma ... 3d7e3f7210