~ubuntu-branches/ubuntu/trusty/sphinxsearch/trusty-proposed

« back to all changes in this revision

Viewing changes to test/test_33/test.xml

  • Committer: Bazaar Package Importer
  • Author(s): Radu Spineanu
  • Date: 2009-11-17 22:19:42 UTC
  • Revision ID: james.westby@ubuntu.com-20091117221942-nm751ur701m9vrzt
Tags: upstream-0.9.8.1
ImportĀ upstreamĀ versionĀ 0.9.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<test>
 
3
 
 
4
<name>ignore_chars vs specials</name>
 
5
 
 
6
<config>
 
7
indexer
 
8
{
 
9
        mem_limit               = 16M
 
10
}
 
11
 
 
12
searchd
 
13
{
 
14
        <searchd_settings/>
 
15
}
 
16
 
 
17
source srctest
 
18
{
 
19
        type                    = mysql
 
20
        <sql_settings/>
 
21
 
 
22
        sql_query               = SELECT * FROM test_table
 
23
}
 
24
 
 
25
index test
 
26
{
 
27
        source                  = srctest
 
28
        path                    = <data_path/>/test
 
29
    charset_type        = utf-8
 
30
 
 
31
    <Dynamic>
 
32
      <Variant> ignore_chars = U+002D </Variant>
 
33
      <Variant> </Variant>
 
34
    </Dynamic>
 
35
}
 
36
</config>
 
37
 
 
38
<queries>
 
39
<query mode="extended2">hello -world</query>
 
40
<query mode="extended2">-hello world</query>
 
41
<query mode="extended2">hello world</query>
 
42
</queries>
 
43
 
 
44
<db_create>
 
45
CREATE TABLE `test_table`
 
46
(
 
47
        `document_id` int(11) NOT NULL default '0',
 
48
        `body` varchar(255) NOT NULL default ''
 
49
)
 
50
</db_create>
 
51
 
 
52
<db_drop>
 
53
DROP TABLE IF EXISTS `test_table`
 
54
</db_drop>
 
55
 
 
56
<db_insert>
 
57
INSERT INTO `test_table` VALUES
 
58
( 1,  'hello world' ),
 
59
( 2,  'hello' ),
 
60
( 3,  'world' )
 
61
</db_insert>
 
62
 
 
63
</test>
 
 
b'\\ No newline at end of file'