File: test.xml

package info (click to toggle)
sphinxsearch 2.2.11-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 25,720 kB
  • sloc: cpp: 102,259; xml: 85,608; sh: 9,259; php: 3,790; ansic: 3,158; yacc: 1,969; java: 1,336; ruby: 1,289; python: 1,062; pascal: 912; perl: 381; lex: 275; makefile: 150; sql: 77; cs: 35
file content (128 lines) | stat: -rw-r--r-- 2,509 bytes parent folder | download | duplicates (3)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0" encoding="UTF-8"?>
<test>

<name>processing error messages from local agents</name>

<config>
indexer
{
	mem_limit		= 16M
}

searchd
{
	<searchd_settings/>
	dist_threads = 3
}

source src
{
	type			= mysql
<sql_settings/>
	sql_attr_uint	= attru
	sql_attr_string	= attrs
	sql_query		= SELECT * FROM test_table WHERE id BETWEEN $start AND $end
	sql_query_range = SELECT 1,1
}

source src1: src
{
	sql_query_range = SELECT 2,2
}

index idx
{
	source			= src
	path			= <data_path/>/main
}

index idx1
{
	source			= src1
	path			= <data_path/>/main1
}

index idxx
{
	type = distributed
	local = idx
	local = idx1
}

<!-- regression: warning from dist_threads local index got lost -->
source src_warn: src
{
	sql_query_range = SELECT 1,2
}

index warn1
{
	source			= src_warn
	path			= <data_path/>/warn1
	min_prefix_len = 5
}

index warn2
{
	source			= src_warn
	path			= <data_path/>/warn2
	min_prefix_len = 5
}

index dist_warn
{
	type = distributed
	local = warn1
	local = warn2
}

index warn3
{
	source			= src_warn
	path			= <data_path/>/warn3
	min_infix_len = 5
}

</config>

<sphqueries>
<sphinxql>select attru, attru+attrs ss from idx</sphinxql>
<sphinxql>select attru, attru+attrs ss from idxx</sphinxql>
<!-- regression: warning from dist_threads local index got lost -->
<sphinxql>select * from warn1 where match (' the box* ' )</sphinxql>
<sphinxql>show meta</sphinxql>
<sphinxql>select * from dist_warn where match (' the box* ' )</sphinxql>
<sphinxql>show meta</sphinxql>
<sphinxql>select * from warn1, warn2 where match (' the box* ' )</sphinxql>
<sphinxql>show meta</sphinxql>
<!-- no warnings for short wildcards -->
<sphinxql>select * from warn3 where match (' box* ' )</sphinxql>
<sphinxql>show warnings</sphinxql>
<sphinxql>select * from warn3 where match (' *box ' )</sphinxql>
<sphinxql>show warnings</sphinxql>
<sphinxql>select * from warn3 where match (' b*x ' )</sphinxql>
<sphinxql>show warnings</sphinxql>
<sphinxql>select * from warn3 where match (' b?x ' )</sphinxql>
<sphinxql>show warnings</sphinxql>
<sphinxql>select * from warn3 where match (' b%x ' )</sphinxql>
<sphinxql>show warnings</sphinxql>
</sphqueries>

<db_create>
CREATE TABLE test_table
(
	id INTEGER PRIMARY KEY NOT NULL,
	attru INTEGER NOT NULL,
	attrs VARCHAR(10) NOT NULL,
	text VARCHAR(10) NOT NULL
) ENGINE=MYISAM
</db_create>

<db_insert>
insert into test_table values
( 1, 1, 'test', 'test' ), (2, 2, 'test', 'test')
</db_insert>

<db_drop>DROP TABLE IF EXISTS test_table</db_drop>

</test>