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

« back to all changes in this revision

Viewing changes to sphinx-min.conf.in

  • 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
#
 
2
# Minimal Sphinx configuration sample (clean, simple, functional)
 
3
#
 
4
 
 
5
source src1
 
6
{
 
7
        type                                    = mysql
 
8
 
 
9
        sql_host                                = localhost
 
10
        sql_user                                = test
 
11
        sql_pass                                =
 
12
        sql_db                                  = test
 
13
        sql_port                                = 3306  # optional, default is 3306
 
14
 
 
15
        sql_query                               = \
 
16
                SELECT id, group_id, UNIX_TIMESTAMP(date_added) AS date_added, title, content \
 
17
                FROM documents
 
18
 
 
19
        sql_attr_uint                   = group_id
 
20
        sql_attr_timestamp              = date_added
 
21
 
 
22
        sql_query_info                  = SELECT * FROM documents WHERE id=$id
 
23
}
 
24
 
 
25
 
 
26
index test1
 
27
{
 
28
        source                                  = src1
 
29
        path                                    = @CONFDIR@/data/test1
 
30
        docinfo                                 = extern
 
31
        charset_type                    = sbcs
 
32
}
 
33
 
 
34
 
 
35
indexer
 
36
{
 
37
        mem_limit                               = 32M
 
38
}
 
39
 
 
40
 
 
41
searchd
 
42
{
 
43
        port                                    = 3312
 
44
        log                                             = @CONFDIR@/log/searchd.log
 
45
        query_log                               = @CONFDIR@/log/query.log
 
46
        read_timeout                    = 5
 
47
        max_children                    = 30
 
48
        pid_file                                = @CONFDIR@/log/searchd.pid
 
49
        max_matches                             = 1000
 
50
        seamless_rotate                 = 1
 
51
        preopen_indexes                 = 0
 
52
        unlink_old                              = 1
 
53
}