Location: PHPKode > scripts > TextIndexer > indexer/remove.php
<?php 
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//  
//  INDEXER - Remove index dataset 
//  
//  Example to remove one object of the index file
//  
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//  
//  Usage:
//  
//  method setPathToIndexer(path): sets the path to the indexer. Default is './'
//  
//  method setID(id): sets the ID. After performing a search, you retrieve this ID to identify your inputdata.
//  
//  method removeIndex(): perform the removing mechanism.
//  
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$storeMethod =  "mysql"; //can be set to "file" or "mysql"

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Indexer</title>
	<style type="text/css">
		body {
			font-family: Arial, Helvetica, sans-serif;
			color: #666666;
			font-size: 11px;
		}
		.forms {
			font-family: Arial, Helvetica, sans-serif;
			color: #666666;
			font-size: 11px;
		}
	</style>
</head>

<body>
<?php 
if ($storeMethod == "mysql") {
	require_once("./class.indexerDB.php");
	require_once("./classes/config_system.php");
	$indexer = new indexerDB($db_connection);
} else {
	require_once("./class.indexer.php");
	$indexer = new indexer();
}
$indexer->setPathToIndexer("./");
$indexer->setId($_GET['id']);
$indexer->removeIndex();
?>

</body>
</html>
Return current item: TextIndexer