aboutsummaryrefslogtreecommitdiff
path: root/sphinx_search.conf
blob: 7c5a5215991b3545b99796af709d2336df7b7dbe (plain)
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
source neodarznet {
    type = pgsql

    sql_host = 127.0.0.1
    sql_user = root
    sql_pass = root
    sql_db = khanindexer

    sql_query = SELECT id, url, title, content FROM neodarznet

    sql_field_string = url
    sql_field_string = title
    sql_field_string = content

}

source nevrax {
    type = pgsql

    sql_host = 127.0.0.1
    sql_user = root
    sql_pass = root
    sql_db = khanindexer

    sql_query = SELECT id, url, title, content FROM nevrax

    sql_field_string = url
    sql_field_string = title
    sql_field_string = content

}

index neodarznet {
    source = neodarznet
    path = /tmp/data/neodarznet
}

index nevrax {
    source = nevrax
    path = /tmp/data/nevrax
}

indexer {
    mem_limit = 32M
}

searchd {
    listen = 127.0.0.1:8080:http
    query_log = /tmp/query.log
    binlog_path = /tmp/
    read_timeout = 5
    client_timeout = 300
    max_children = 30
    persistent_connections_limit = 30
    pid_file = /tmp/searchd.pid
    seamless_rotate = 1
    preopen_indexes = 1
    unlink_old = 1
    mva_updates_pool = 1M
    max_packet_size = 8M
    max_filter_values = 4096
    max_batch_queries = 32
    workers = threads_pool
}