1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
<?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>
|