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

« back to all changes in this revision

Viewing changes to test/test_00/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
  <Name>prefix/infix indexing (part 1)</Name>
 
4
  <Config>
 
5
    <Static>indexer
 
6
{
 
7
        mem_limit                       = 16M
 
8
}
 
9
 
 
10
searchd
 
11
{
 
12
</Static>
 
13
<Searchd_Settings/><Static>
 
14
}
 
15
 
 
16
source srclj
 
17
{
 
18
        type                    = mysql
 
19
</Static>
 
20
<Sql_Settings/>
 
21
<Static>
 
22
        sql_query = SELECT id, subject, body, author FROM test_table
 
23
}
 
24
</Static>
 
25
<Static>
 
26
index lj
 
27
{
 
28
        source                  = srclj
 
29
        path                    = </Static><Data_Path/><Static>/lj
 
30
        charset_type    = utf-8
 
31
</Static>
 
32
    <Dynamic>
 
33
      <Variant> min_word_len    = 0</Variant>
 
34
    </Dynamic>
 
35
    <Dynamic>
 
36
      <Variant> min_prefix_len  = 0</Variant>
 
37
      <Variant> min_prefix_len  = 1</Variant>
 
38
      <Variant> min_prefix_len  = 3</Variant>
 
39
    </Dynamic>
 
40
    <Dynamic>
 
41
      <Variant> min_infix_len   = 0</Variant>
 
42
      <Variant> min_infix_len   = 1</Variant>
 
43
      <Variant> min_infix_len   = 3</Variant>
 
44
    </Dynamic>
 
45
    <Dynamic>
 
46
      <Variant> enable_star             = 0</Variant>
 
47
      <Variant> enable_star             = 1</Variant>
 
48
    </Dynamic>
 
49
    <Static>}</Static>
 
50
  </Config>
 
51
  <Query>
 
52
    <Query_0>admin</Query_0>
 
53
    <Query_1>*earc*</Query_1>
 
54
    <Query_2>up*</Query_2>
 
55
    <Query_3>dmin</Query_3>
 
56
    <Query_4>rep</Query_4>
 
57
    <Query_5>pda</Query_5>
 
58
  </Query>
 
59
  <DB_Create>
 
60
CREATE TABLE `test_table` (
 
61
  `id` int(11) NOT NULL default '0',
 
62
  `document_id` int(5) NOT NULL default '0',
 
63
  `subject` varchar(255) NOT NULL default '',
 
64
  `body` varchar(255) NOT NULL default '',
 
65
  `author` varchar(255) NOT NULL default ''
 
66
)
 
67
  </DB_Create>
 
68
  <DB_Drop>
 
69
DROP TABLE IF EXISTS `test_table`
 
70
  </DB_Drop>
 
71
  <DB_Insert>
 
72
INSERT INTO `test_table` VALUES
 
73
(1,1,'Problem with enable_star searches','Having star searches is great! Just what we needed','Maurice Makaay'),
 
74
(2,2,'Problem with enable_star searches',' But the thing is, that I cannot search for authors anymore','admin'),
 
75
(3,3,'Problem with enable_star searches','I will try to repro it here and update you','shodan')
 
76
  </DB_Insert>
 
77
</Test>
 
 
b'\\ No newline at end of file'