Report abuse

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

# to put in RAILS_ROOT/config/ultrasphinx
# can be namespaced individually (development.base)

indexer
{
  mem_limit = 256M
}

searchd
{
  address = 0.0.0.0
  port = 3312
  log = /var/log/sphinx/searchd.log
  query_log = /var/log/sphinx/query.log
  read_timeout = 5
  max_children = 30
  pid_file = /var/run/searchd.pid
  max_matches = 100000
}

ultrasphinx
{
  # indexer options
  path = /var/sphinx/db/
  docinfo = extern # just leave this alone
  morphology = stem_en
  stopwords = # /path/to/stopwords.txt
  min_word_len = 1
  charset_type = utf-8 # or sbcs (Single Byte Character Set)
  # client options
  server_host = localhost
  server_port = 3312
}