<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Reindex with erase</title>
        <description> Sphider's Reindex detects MD5 checksum changes at the sites you indexed before. But it dosn't recocnize changes you did in admin section. In order to solve this, here is a solution truncating the required tables of your database before reindexing.

Install a new script into folder ./admin/ which is called erase.php with the following content: 

&amp;lt;!-- Start of erase.php --&amp;gt;
&amp;lt;head&amp;gt; 
&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=iso-8859-1&amp;quot; /&amp;gt; 
&amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;admin.css&amp;quot; type=&amp;quot;text/css&amp;quot; /&amp;gt; 
&amp;lt;/head&amp;gt; 
&amp;lt;body&amp;gt; 
&amp;lt;? 

include &amp;quot;auth.php&amp;quot;; 
$settings_dir = &amp;quot;../settings&amp;quot;; 
include &amp;quot;$settings_dir/conf.php&amp;quot;; 

$erase =array (&amp;quot;domains&amp;quot;,&amp;quot;keywords&amp;quot;,&amp;quot;links&amp;quot;,&amp;quot;link_keyword0&amp;quot;,&amp;quot;link_keyword1&amp;quot;,&amp;quot;link_keyword2&amp;quot;,&amp;quot;link_keyword3&amp;quot;,&amp;quot;link_keyword4&amp;quot;,&amp;quot;link_keyword5&amp;quot;,&amp;quot;link_keyword6&amp;quot;,&amp;quot;link_keyword7&amp;quot;,&amp;quot;link_keyword8&amp;quot;,&amp;quot;link_keyword9&amp;quot;,&amp;quot;link_keyworda&amp;quot;,&amp;quot;link_keywordb&amp;quot;,&amp;quot;link_keywordc&amp;quot;,&amp;quot;link_keywordd&amp;quot;,&amp;quot;link_keyworde&amp;quot;,&amp;quot;link_keywordf&amp;quot;,&amp;quot;pending&amp;quot;); 
foreach ($erase as $allthis){ 
mysql_query (&amp;quot;TRUNCATE `&amp;quot;.$mysql_table_prefix.&amp;quot;$allthis`&amp;quot;); 
echo mysql_error(); 
} 

print &amp;quot;&amp;lt;br&amp;gt;Erasing done&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;quot;; 

?&amp;gt; 
&amp;lt;a href='spider.php?all=1'&amp;gt;&amp;lt;br&amp;gt;Okay, now reindex all&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/a&amp;gt; 
&amp;lt;a href='admin.php'&amp;gt;&amp;lt;br&amp;gt;Return to admin without reindex&amp;lt;/a&amp;gt; 
&amp;lt;/body&amp;gt; 
&amp;lt;/html&amp;gt; 
&amp;lt;!-- End of erase.php --&amp;gt;



Now open /admin/admin.php and search for:
 

&amp;lt;li&amp;gt;&amp;lt;a href='spider.php?all=1'&amp;gt;Reindex all&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/li&amp;gt; 

After this, place a new row with this content: 

&amp;lt;li&amp;gt;&amp;lt;a href='erase.php'&amp;gt;Reindex all with erase&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/li&amp;gt; 

Ready. In admin section &amp;quot;Sites&amp;quot; now you will find a new item called &amp;quot;Reindex with erase&amp;quot;. Use this to do an index after you changed admin settings. 

Tec</description>
        <link>http://www.sphider.eu/forum/read.php?3,555,555#msg-555</link>
        <lastBuildDate>Tue, 21 May 2013 10:34:20 +0300</lastBuildDate>
        <generator>Phorum 5.2.10</generator>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,555,7333#msg-7333</guid>
            <title>Re: Reindex with erase</title>
            <link>http://www.sphider.eu/forum/read.php?3,555,7333#msg-7333</link>
            <description><![CDATA[ great, thanks for the quick reply, <br />
<br />
I just ran the reindexing, and my computer didn't blow up, <br />
<br />
<br />
thanks,]]></description>
            <dc:creator>damiancds</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Tue, 06 Apr 2010 18:28:34 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,555,7331#msg-7331</guid>
            <title>Re: Reindex with erase</title>
            <link>http://www.sphider.eu/forum/read.php?3,555,7331#msg-7331</link>
            <description><![CDATA[ replace it with a  <pre class="bbcode">
)
</pre>]]></description>
            <dc:creator>Willy</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Tue, 06 Apr 2010 17:49:05 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,555,7330#msg-7330</guid>
            <title>Re: Reindex with erase</title>
            <link>http://www.sphider.eu/forum/read.php?3,555,7330#msg-7330</link>
            <description><![CDATA[ I hate to bring up an old topic, but looking at the code, there's smileys in it which I doubt is syntactically  correct.<br />
<br />
Instead of the smiley, what goes there, just a &quot;)&quot; ?<br />
<br />
I'm not really sure and I don't want to go corrupting my databases on a guess,<br />
<br />
<br />
thanks to anyone who catches this,]]></description>
            <dc:creator>damiancds</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Tue, 06 Apr 2010 16:59:09 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,555,5523#msg-5523</guid>
            <title>Re: Reindex with erase</title>
            <link>http://www.sphider.eu/forum/read.php?3,555,5523#msg-5523</link>
            <description><![CDATA[ Site individual 'Erase &amp; Re-index' is enabled by Sphider-plus<br />
<br />
Tec]]></description>
            <dc:creator>Tec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Fri, 19 Dec 2008 13:16:56 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,555,5522#msg-5522</guid>
            <title>Re: Reindex with erase</title>
            <link>http://www.sphider.eu/forum/read.php?3,555,5522#msg-5522</link>
            <description><![CDATA[ ok. thanks for the info, Tec. reindexing with erase is like a couple days of work in my case.]]></description>
            <dc:creator>Willdk</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Fri, 19 Dec 2008 12:21:15 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,555,5521#msg-5521</guid>
            <title>Re: Reindex with erase</title>
            <link>http://www.sphider.eu/forum/read.php?3,555,5521#msg-5521</link>
            <description><![CDATA[ Also table contents of 'categories' and 'query log' remain untouched.<br />
<br />
Tec]]></description>
            <dc:creator>Tec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Fri, 19 Dec 2008 10:46:13 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,555,5520#msg-5520</guid>
            <title>Re: Reindex with erase</title>
            <link>http://www.sphider.eu/forum/read.php?3,555,5520#msg-5520</link>
            <description><![CDATA[ Yes, it'll empty all the tables except for the ones containing the site(s).]]></description>
            <dc:creator>Willy</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Fri, 19 Dec 2008 10:06:57 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,555,5519#msg-5519</guid>
            <title>Re: Reindex with erase</title>
            <link>http://www.sphider.eu/forum/read.php?3,555,5519#msg-5519</link>
            <description><![CDATA[ I don't understand how this mod will treat the database. The size of my database is more than 400 mb, so I'm a bit scared to mess up this.<br />
<br />
If you choose &quot;Reindex all with erase&quot; the tables will be emptied, therefore 400 mb gone?]]></description>
            <dc:creator>Willdk</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Fri, 19 Dec 2008 09:25:13 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,555,3422#msg-3422</guid>
            <title>Re: Reindex with erase</title>
            <link>http://www.sphider.eu/forum/read.php?3,555,3422#msg-3422</link>
            <description><![CDATA[ Thanks]]></description>
            <dc:creator>mdekok3000</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Fri, 25 Jan 2008 20:49:39 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,555,689#msg-689</guid>
            <title>Re: Reindex with erase</title>
            <link>http://www.sphider.eu/forum/read.php?3,555,689#msg-689</link>
            <description><![CDATA[ Excellent.]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Wed, 13 Jun 2007 01:10:35 +0300</pubDate>
        </item>
        <item>
            <guid>http://www.sphider.eu/forum/read.php?3,555,555#msg-555</guid>
            <title>Reindex with erase</title>
            <link>http://www.sphider.eu/forum/read.php?3,555,555#msg-555</link>
            <description><![CDATA[ Sphider's Reindex detects MD5 checksum changes at the sites you indexed before. But it dosn't recocnize changes you did in admin section. In order to solve this, here is a solution truncating the required tables of your database before reindexing.<br />
<br />
Install a new script into folder ./admin/ which is called erase.php with the following content: <br />
<br />
&lt;!-- Start of erase.php --&gt;<br />
&lt;head&gt; <br />
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt; <br />
&lt;link rel=&quot;stylesheet&quot; href=&quot;admin.css&quot; type=&quot;text/css&quot; /&gt; <br />
&lt;/head&gt; <br />
&lt;body&gt; <br />
&lt;? <br />
<br />
include &quot;auth.php&quot;; <br />
$settings_dir = &quot;../settings&quot;; <br />
include &quot;$settings_dir/conf.php&quot;; <br />
<br />
$erase =array (&quot;domains&quot;,&quot;keywords&quot;,&quot;links&quot;,&quot;link_keyword0&quot;,&quot;link_keyword1&quot;,&quot;link_keyword2&quot;,&quot;link_keyword3&quot;,&quot;link_keyword4&quot;,&quot;link_keyword5&quot;,&quot;link_keyword6&quot;,&quot;link_keyword7&quot;,&quot;link_keyword8&quot;,&quot;link_keyword9&quot;,&quot;link_keyworda&quot;,&quot;link_keywordb&quot;,&quot;link_keywordc&quot;,&quot;link_keywordd&quot;,&quot;link_keyworde&quot;,&quot;link_keywordf&quot;,&quot;pending&quot;); <br />
foreach ($erase as $allthis){ <br />
mysql_query (&quot;TRUNCATE `&quot;.$mysql_table_prefix.&quot;$allthis`&quot;); <br />
echo mysql_error(); <br />
} <br />
<br />
print &quot;&lt;br&gt;Erasing done&lt;br&gt;&lt;br&gt;&quot;; <br />
<br />
?&gt; <br />
&lt;a href='spider.php?all=1'&gt;&lt;br&gt;Okay, now reindex all&lt;br&gt;&lt;br&gt;&lt;/a&gt; <br />
&lt;a href='admin.php'&gt;&lt;br&gt;Return to admin without reindex&lt;/a&gt; <br />
&lt;/body&gt; <br />
&lt;/html&gt; <br />
&lt;!-- End of erase.php --&gt;<br />
<br />
<br />
<br />
Now open /admin/admin.php and search for:<br />
 <br />
<br />
&lt;li&gt;&lt;a href='spider.php?all=1'&gt;Reindex all&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/li&gt; <br />
<br />
After this, place a new row with this content: <br />
<br />
&lt;li&gt;&lt;a href='erase.php'&gt;Reindex all with erase&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;/li&gt; <br />
<br />
Ready. In admin section &quot;Sites&quot; now you will find a new item called &quot;Reindex with erase&quot;. Use this to do an index after you changed admin settings. <br />
<br />
Tec]]></description>
            <dc:creator>Tec</dc:creator>
            <category>Sphider Mods</category>
            <pubDate>Sat, 19 May 2007 08:14:11 +0300</pubDate>
        </item>
    </channel>
</rss>
