<?xml version="1.0" encoding="utf-8"?>
<Test>
  <Name>multi-queries</Name>

<Config>
indexer
{
	mem_limit			= 16M
}

searchd
{
	subtree_docs_cache 	= 0
	subtree_hits_cache 	= 0
	<searchd_settings/>
}

source srctest
{
	type			= mysql
<Sql_Settings/>

	sql_query = SELECT * FROM test_table
}

index test_idx
{
	source			= srctest
	path			= <Data_Path/>/test
    charset_type	= utf-8
}
</Config>
<DB_Create>
CREATE TABLE `test_table` (
  `id` int(11) NOT NULL default '0',
  `body` varchar(255) NOT NULL default ''
)
</DB_Create>
<DB_Drop>
DROP TABLE IF EXISTS `test_table`
</DB_Drop>
<DB_Insert>
INSERT INTO `test_table` VALUES
( 1, 'one' ),
( 2, 'one two' ),
( 3, 'one two three' ),
( 4, 'one two three four' ),
( 5, 'one two three four five' )
</DB_Insert>

<Custom_test><![CDATA[
$client->AddQuery ('one');
$client->AddQuery ('two');
$client->AddQuery ('three');
$client->AddQuery ('four');
$client->AddQuery ('five');
$results = $client->RunQueries ();
for ( $i=0; $i<=4; $i++ )
	if ( is_array($results) && is_array($results[$i]) )
		unset ( $results[$i]["time"] );
]]></Custom_test>

</Test>
