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 (90 lines) | stat: -rw-r--r-- 2,280 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
<?xml version="1.0" encoding="utf-8"?>
<test>

<name>wordforms: comments, after morph modifier, multiple wordform files</name>

<config>
indexer
{
	mem_limit			= 16M
}

searchd
{
	<searchd_settings/>
	workers = threads
}

source test
{
	type				= mysql
	<sql_settings/>
	sql_query			= select * from test_table
}

index test
{
	source				= test
	path				= <data_path/>/test
	wordforms			= <this_test/>/wordforms.txt
	wordforms			= <this_test/>/words*.txt
	morphology			= stem_en
}

index ord1
{
	source				= test
	path				= <data_path/>/ord1
	wordforms			= <this_test/>/wf1.txt
}

index ord2
{
	source				= test
	path				= <data_path/>/ord2
	wordforms			= <this_test/>/wf2.txt
}
</config>

<db_create>
CREATE TABLE test_table
(
	id INTEGER PRIMARY KEY NOT NULL,
	content VARCHAR(255) NOT NULL
);
</db_create>
<db_drop>DROP TABLE IF EXISTS test_table;</db_drop>
<db_insert>
INSERT INTO test_table VALUES
( 100, 'drink drive' ),
( 101, 'smoked flew' ),
( 102, 'simple form' ),
( 103, 'manuscript' ),
( 104, 'before after' ),
( 105, 'me walked' ),
( 106, 'us walk' ),
( 107, 'me run' ),
( 108, 'us running' ),
( 111, 'tell me test fest but not test pest' ),
( 120, 'wound care and ostomy' )
</db_insert>

<sphqueries>
<sphinxql>select * from test where match('multi_before')</sphinxql>
<sphinxql>select * from test where match('wordform')</sphinxql>
<sphinxql>select * from test where match('result1')</sphinxql>
<sphinxql>select * from test where match('result2')</sphinxql>
<sphinxql>select * from test where match('book1')</sphinxql>
<sphinxql>select * from test where match('book2')</sphinxql>
<sphinxql>select * from test where match('shouldnotbe')</sphinxql>
<sphinxql>select * from test where match('ran')</sphinxql>
<sphinxql>select * from test where match('halt')</sphinxql>
<!-- regression crash on wordform with multiple destination tokens -->
<sphinxql>select * from test where match('test test')</sphinxql>
<sphinxql>select * from test where match('test pest')</sphinxql>
<!-- regression for multiforms applied in the wrong order -->
<sphinxql>select * from ord1 where match('^wound$')</sphinxql>
<sphinxql>select * from ord2 where match('^wound$')</sphinxql>
</sphqueries>

</test>