Skip to content

Commit

Permalink
Reverted indexing, deleting and searching to pre-Lucene state (http:/…
Browse files Browse the repository at this point in the history
…/www.wikidot.org/bug:2).

Added search:* pages to initial dump (http://www.wikidot.org/bug:16).
Updated Makefile and made generate_keys.sh executable (http://www.wikidot.org/bug:9).
Removed sidebar from account category on main site (http://www.wikidot.org/bug:10).
  • Loading branch information
Piotr Gabryjeluk committed Jul 18, 2009
1 parent 0c09566 commit 7025280
Show file tree
Hide file tree
Showing 13 changed files with 87 additions and 697 deletions.
5 changes: 4 additions & 1 deletion Makefile
@@ -1,5 +1,5 @@

all: db config finish
all: db keys config finish

prepare_db:
bin/prepare_db.php | psql
Expand All @@ -9,6 +9,9 @@ db:
bin/generate_om.php
bin/bootstrap_pages.php files/dump/sites/*

keys:
bin/generate_keys.sh

config:
bin/configure.php

Expand Down
Empty file modified bin/generate_keys.sh 100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions files/dump/db/4-main-site.sql
Expand Up @@ -56,10 +56,10 @@ INSERT INTO category VALUES (5,

INSERT INTO category VALUES (6,
1, 'account',
true, 20,
false, 21,
false, 'e:;c:;m:;d:;a:;r:;z:;o:',
true, 1, NULL,
true, 'nav:top', 'nav:side',
false, 'nav:top', NULL,
NULL, false, true, NULL, NULL, NULL, true, false, false, NULL
);;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

3 changes: 3 additions & 0 deletions files/dump/sites/www/search.all.page
@@ -0,0 +1,3 @@
Search All Sites

[[module SearchAll]]
3 changes: 3 additions & 0 deletions files/dump/sites/www/search.site.page
@@ -0,0 +1,3 @@
Search

[[module Search]]
11 changes: 1 addition & 10 deletions php/actions/ManageSiteAction.php
Expand Up @@ -818,12 +818,7 @@ public function savePrivateSettingsEvent($runData){
}
}

$db->commit();

// update the search index
$lucene = new Wikidot_Search_Lucene();
$lucene->queueReIndexSite($site->getSiteId());

$db->commit();
if (GlobalProperties::$UI_SLEEP) { sleep(1); }
}

Expand Down Expand Up @@ -910,10 +905,6 @@ public function deleteSiteEvent($runData){
$site->setCustomDomain(null);
}
$db->commit();

// update the search index
$lucene = new Wikidot_Search_Lucene();
$lucene->queueReIndexSite($site->getSiteId());

}

Expand Down
27 changes: 0 additions & 27 deletions php/class/Wikidot/Search/Exception.php

This file was deleted.

0 comments on commit 7025280

Please sign in to comment.