summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/indexer.php7
-rw-r--r--bin/striplangs.php2
2 files changed, 6 insertions, 3 deletions
diff --git a/bin/indexer.php b/bin/indexer.php
index 4bfd1682e..f6aeb4f0e 100755
--- a/bin/indexer.php
+++ b/bin/indexer.php
@@ -133,12 +133,15 @@ function _clearindex(){
_lock();
_quietecho("Clearing index... ");
io_saveFile($conf['indexdir'].'/page.idx','');
- //io_saveFile($conf['indexdir'].'/title.idx','');
+ io_saveFile($conf['indexdir'].'/title.idx','');
+ io_saveFile($conf['indexdir'].'/pageword.idx','');
+ io_saveFile($conf['indexdir'].'/metadata.idx','');
$dir = @opendir($conf['indexdir']);
if($dir!==false){
while(($f = readdir($dir)) !== false){
if(substr($f,-4)=='.idx' &&
- (substr($f,0,1)=='i' || substr($f,0,1)=='w'))
+ (substr($f,0,1)=='i' || substr($f,0,1)=='w'
+ || substr($f,-6)=='_w.idx' || substr($f,-6)=='_i.idx' || substr($f,-6)=='_p.idx'))
@unlink($conf['indexdir']."/$f");
}
}
diff --git a/bin/striplangs.php b/bin/striplangs.php
index 288859c6a..40cef5063 100644
--- a/bin/striplangs.php
+++ b/bin/striplangs.php
@@ -22,7 +22,7 @@ function usage($show_examples = false) {
-h, --help get this help
-x, --examples get also usage examples
-k, --keep comma separated list of languages, -e is always implied
- -e, --english keeps english, dummy to use without -k";
+ -e, --english keeps english, dummy to use without -k\n";
if ( $show_examples ) {
print "\n
EXAMPLES