public static function remove($site_object)
 {
     FullTextIndexer::instance()->_doRemove($site_object);
 }
Example #2
0
if(isset($argv[2]))
  $path = $argv[2];
else
  $path = '/root';

require_once($project_dir . '/setup.php');
require_once(LIMB_DIR . '/class/core/tree/MaterializedPathTree.class.php');
require_once(LIMB_DIR . '/class/core/site_objects/SiteObjectFactory.class.php');
require_once(LIMB_DIR . '/class/search/FullTextIndexer.class.php');
require_once(LIMB_DIR . '/class/lib/db/DbFactory.class.php');

set_time_limit(3000);

$tree = materializedPathTree();
$indexer = new FullTextIndexer();
$db = DbFactory::instance();

echo "getting nodes from {$path}...\n";

$nodes =& $tree->getSubBranchByPath($path);

echo "nodes retrieved...\n";

$total = sizeof($nodes);

echo 'total nodes count = '. $total . "...\n";

$counter = 0;

$missed_objects = array();