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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
<?xml version="1.0" encoding="utf-8"?>
<Test>
<Name>RT: re-insert deleted row, keyword weights vs different insert scenarios</Name>
<skip_indexer/>
<Config>
indexer
{
mem_limit = 16M
}
searchd
{
<Searchd_Settings/>
workers = threads
binlog_path =
}
index test92
{
type = rt
path = data/test92
rt_attr_uint = idd
rt_field = content
}
index test102
{
type = rt
path = data/test102
rt_attr_uint = idd
rt_field = content
}
index test104
{
type = rt
path = data/test104
rt_attr_uint = idd
rt_field = content
}
index test105
{
type = rt
path = data/test105
rt_attr_uint = idd
rt_field = content
}
</Config>
<SPHQueries>
<SPHinxQL>insert into test92 (id,content) values (1,'content'),(2,'you')</SPHinxQL>
<SPHinxQL>delete from test92 where id=1</SPHinxQL>
<SPHinxQL>select * from test92</SPHinxQL>
<SPHinxQL>insert into test92 (id,content) values (1,'newcontent')</SPHinxQL>
<SPHinxQL>select * from test92 where match('you')</SPHinxQL>
<SPHinxQL>select * from test92 where match('content')</SPHinxQL>
<SPHinxQL>select * from test92 where match('newcontent')</SPHinxQL>
<SPHinxQL>insert into test102 (id,content) values (1,'content'),(2,'newcontent')</SPHinxQL>
<SPHinxQL>delete from test102 where id=1</SPHinxQL>
<SPHinxQL>insert into test102 (id,content) values (1,'bla')</SPHinxQL>
<SPHinxQL>select * from test102 where match('bla')</SPHinxQL>
<SPHinxQL>select * from test102 where match('newcontent')</SPHinxQL>
<SPHinxQL>insert into test102 (id,content) values (3,'content2')</SPHinxQL>
<SPHinxQL>select * from test102 where match('bla')</SPHinxQL>
<SPHinxQL>select * from test102 where match('content2')</SPHinxQL>
<SPHinxQL>select * from test102 where match('newcontent')</SPHinxQL>
<SPHinxQL>insert into test104 (id,content) values (1,'word1'),(2,'word2')</SPHinxQL>
<SPHinxQL>insert into test104 (id,content) values (3,'word3')</SPHinxQL>
<SPHinxQL>select * from test104 where match('word1|word3')</SPHinxQL>
<SPHinxQL>insert into test105 (id,content) values (1,'content'),(2,'newcontent')</SPHinxQL>
<SPHinxQL>replace into test105 (id,content) values (1,'contend')</SPHinxQL>
<SPHinxQL>select * from test105 where match('contend|newcontent')</SPHinxQL>
<SPHinxQL>select * from test105 where match('content')</SPHinxQL>
<SPHinxQL>select * from test105 where match('contend MAYBE newcontent')</SPHinxQL>
</SPHQueries>
</Test>
|