<?xml version="1.0" encoding="utf-8"?>
<Test>
<Name>html_stripper vs sql_file_field</Name>

<requires>
<non-rt/>
</requires>

<Config>
indexer
{
	mem_limit			= 16M
}

searchd
{
<Searchd_Settings/>
}

source srctest
{
	type			= mysql
<Sql_Settings/>

	sql_query = SELECT * FROM test_table
	sql_attr_uint = idd
	sql_file_field = title
}

index test_idx
{
	source			= srctest
	path			= <Data_Path/>/test
	html_strip		= 1
}

</Config>
<DB_Create>
CREATE TABLE test_table
(
	id INTEGER NOT NULL,
	idd INTEGER NOT NULL,
	title VARCHAR(255) NOT NULL
)
</DB_Create>
<DB_Drop>
DROP TABLE IF EXISTS `test_table`
</DB_Drop>
<DB_Insert>
INSERT INTO `test_table` VALUES
( 1, 1,  'html_120.txt' ),
( 2, 2, '' )
</DB_Insert>

<SPHQueries>
	<SPHinxQL>select * from test_idx where match( 'div' )</SPHinxQL>
	<SPHinxQL>select * from test_idx where match( 'span' )</SPHinxQL>
	<SPHinxQL>select * from test_idx where match( 'end' )</SPHinxQL>
</SPHQueries>

</Test>
