My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
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
#
# Minimal Sphinx configuration sample (clean, simple, functional)
#

source src1
{
type = mysql

sql_host = localhost
sql_user = test
sql_pass =
sql_db = test
sql_port = 3306 # optional, default is 3306

sql_query = \
SELECT id, group_id, UNIX_TIMESTAMP(date_added) AS date_added, title, content \
FROM documents

sql_attr_uint = group_id
sql_attr_timestamp = date_added

sql_query_info = SELECT * FROM documents WHERE id=$id
}


index test1
{
source = src1
path = @CONFDIR@/data/test1
docinfo = extern
charset_type = sbcs
}


index testrt
{
type = rt
rt_mem_limit = 32M

path = @CONFDIR@/data/testrt
charset_type = utf-8

rt_field = title
rt_field = content
rt_attr_uint = gid
}


indexer
{
mem_limit = 32M
}


searchd
{
listen = 9312
listen = 9306:mysql41
log = @CONFDIR@/log/searchd.log
query_log = @CONFDIR@/log/query.log
read_timeout = 5
max_children = 30
pid_file = @CONFDIR@/log/searchd.pid
max_matches = 1000
seamless_rotate = 1
preopen_indexes = 1
unlink_old = 1
workers = threads # for RT to work
binlog_path = @CONFDIR@/data
}

Change log

r3136 by tomat on Mar 2, 2012   Diff
merged rel20 branch (upto r3135) back into
trunk
Go to: 
Project members, sign in to write a code review

Older revisions

r2781 by shodan on Apr 18, 2011   Diff
lets default preopen_indexes "enforcer
option" to 1

r2416 by shodan on Jul 19, 2010   Diff
tabsize 8 (long due), and
workers=threads in sample .confs (for
RT to work)

r2414 by shodan on Jul 19, 2010   Diff
added sample RT index, proper listen
defaults, and changed tabsize to 8 in
sphinx-min.conf

All revisions of this file

File info

Size: 1124 bytes, 70 lines

File properties

svn:eol-style
native
Powered by Google Project Hosting