We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

sphinx.conf.sample 2.03 KB
Newer Older
1
#
2
# Minimal Sphinx configuration sample for statusnet
3 4 5 6
#

source src1
{
7 8 9 10 11 12 13 14 15
    type                    = mysql
    sql_host                = localhost
    sql_user                = USERNAME
    sql_pass                = PASSWORD
    sql_db                  = identi_ca
    sql_port                = 3306
    sql_query               = SELECT id, UNIX_TIMESTAMP(created) as created_ts, nickname, fullname, location, bio, homepage FROM profile
    sql_query_info          = SELECT * FROM profile where id = $id
    sql_attr_timestamp      = created_ts
16 17 18 19 20
}


source src2
{
21 22 23 24 25 26 27 28 29
    type                    = mysql
    sql_host                = localhost
    sql_user                = USERNAME
    sql_pass                = PASSWORD
    sql_db                  = identi_ca
    sql_port                = 3306
    sql_query               = SELECT id, UNIX_TIMESTAMP(created) as created_ts, content FROM notice
    sql_query_info          = SELECT * FROM notice where notice.id = $id AND notice.is_local != -2
    sql_attr_timestamp      = created_ts
30 31 32 33
}

index identica_notices
{
34 35 36 37 38 39
    source                  = src2
    path                    = DIRECTORY/data/identica_notices
    docinfo                 = extern
    charset_type            = utf-8
    min_word_len            = 3
    stopwords               = DIRECTORY/data/stopwords-en.txt
40 41 42 43 44
}


index identica_people
{
45 46 47 48 49 50
    source                  = src1
    path                    = DIRECTORY/data/identica_people
    docinfo                 = extern
    charset_type            = utf-8
    min_word_len            = 3
    stopwords               = DIRECTORY/data/stopwords-en.txt
51 52 53 54
}

indexer
{
55
    mem_limit               = 32M
56 57 58 59
}

searchd
{
60 61 62 63 64 65 66 67 68 69
    port                    = 3312
    log                     = DIRECTORY/log/searchd.log
    query_log               = DIRECTORY/log/query.log
    read_timeout            = 5
    max_children            = 30
    pid_file                = DIRECTORY/log/searchd.pid
    max_matches             = 1000
    seamless_rotate         = 1
    preopen_indexes         = 0
    unlink_old              = 1
70 71
}