<?xml version="1.0" encoding="utf-8"?>
<Test>
  <Name>subtree cache vs AND node reset</Name>

<Config>
indexer
{
	mem_limit			= 16M
}

searchd
{
<dynamic>
<variant>	subtree_docs_cache 	= 0</variant>
<variant>	subtree_docs_cache 	= 40</variant>
<variant>	subtree_docs_cache 	= 10M</variant>
</dynamic>
<dynamic>
<variant>	subtree_hits_cache 	= 0</variant>
<variant>	subtree_hits_cache 	= 40</variant>
<variant>	subtree_hits_cache 	= 10M</variant>
</dynamic>
<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 two three one' ),
( 2, 'one two three one two' ),
( 3, 'one two three one two three' ),
( 4, 'one two three four six' ),
( 5, 'one two three four five seven' )
</DB_Insert>

  <Query_Settings><![CDATA[
$client->SetMatchMode (SPH_MATCH_EXTENDED2);
$client->AddQuery ("(one two three) |one");
$client->AddQuery ("(one two three) |six");
$results = $client->RunQueries ();
]]></Query_Settings>

<Queries><Query/></Queries>

</Test>
