<test>
<name>quorum vs decreased matched word</name>

<config>
indexer
{
	mem_limit = 16M
}

searchd
{
	<searchd_settings/>
}

source test1
{
	type = mysql
	<sql_settings/>
	sql_query = SELECT * FROM test_table1
}

index test1
{
	source	= test1
	path	= <data_path/>/test1
	docinfo	= extern
}

source test2
{
	type = mysql
	<sql_settings/>
	sql_query = SELECT * FROM test_table2
}

index test2
{
	source	= test2
	path	= <data_path/>/test2
	docinfo	= extern
}
</config>

<db_create>
CREATE TABLE test_table1
(
	document_id INT NOT NULL,
	text VARCHAR(255) NOT NULL
);
</db_create>

<db_drop>
DROP TABLE IF EXISTS test_table1;
</db_drop>

<db_create>
CREATE TABLE test_table2
(
	document_id INT NOT NULL,
	text VARCHAR(255) NOT NULL
);
</db_create>

<db_drop>
DROP TABLE IF EXISTS test_table2;
</db_drop>

<custom_insert><![CDATA[
	$sql_data = array (
		1=>'world space',
		2=>'one',
		3=>'two',
		4=>'world',
		5=>'space',
		6=>'unused1',
		7=>'unused2'
		);
	foreach ( $sql_data as $key => $value )
	{
		$text = sprintf ( "insert into test_table1 values ( %d, '%s' )", $key, $value );
		mysql_query ( $text );
	}
	
	$text = sprintf ( "insert into test_table2 values ( 1, '%s' )", $sql_data[1] );
	for ( $i=1; $i < 513; $i++ )
	{
		$text = '';
		$text = sprintf ( "insert into test_table2 values ( %d, '%s' )", $i, $sql_data[1] );
		mysql_query ( $text );
	}
	foreach ( $sql_data as $key => $value )
	{
		$text = sprintf ( "insert into test_table2 values ( %d, '%s' )", 600+$key, $value );
		mysql_query ( $text );
	}
]]></custom_insert>

<queries>
	<query mode="extended2" index="test1">"one two unused1 unused2 space world"/2</query>
	<query mode="extended2" index="test2" limits="600">"one two unused1 unused2 space world"/2</query>
</queries>

</test>
