Skip to content

Commit

Permalink
remove and update old Sphinx v1 config settings. Enable English stemming
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Bauer committed Dec 19, 2018
1 parent c76f77a commit f027f82
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions assests/sphinx.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#
# WARNING: YOUR DATABASE PASSWORD/USERNAME ARE CONTAINED IN THIS FILE!!!!
#
# -@author mcuhq
####################################################################


Expand Down Expand Up @@ -157,19 +156,16 @@ index {ss_prefix}main
source = {ss_prefix}main_discussion
path = {data_path}{ss_prefix}main
docinfo = extern
charset_type = {charset_type} #For more charsets, for Arabic, Persian, Italian, etc forums, please see: http://sphinxsearch.com/wiki/doku.php?id=charset_tables

#index settings
morphology = none
dict = crc
min_stemming_len = 1
morphology = stem_en
dict = keywords
min_stemming_len = 4
min_word_len = 2
min_prefix_len = 0
min_infix_len = 0
enable_star = 0
ngram_len = 0
html_strip = 0
ondisk_dict = 0
inplace_enable = 0
expand_keywords = 0
# 'utf-8' defaults for English and Russian
Expand All @@ -183,19 +179,16 @@ index {ss_prefix}delta : {ss_prefix}main
source = {ss_prefix}delta_discussion
path = {data_path}{ss_prefix}delta
docinfo = extern
charset_type = {charset_type}

#index settings
morphology = none
dict = crc
dict = keywords
min_stemming_len = 1
min_word_len = 2
min_prefix_len = 0
min_infix_len = 0
enable_star = 0
ngram_len = 0
html_strip = 0
ondisk_dict = 0
inplace_enable = 0
expand_keywords = 0
# 'utf-8' defaults for English and Russian
Expand Down Expand Up @@ -251,7 +244,7 @@ indexer

searchd
{
port = {searchd_port}
listen = {searchd_port}
log = {log_path}
query_log = {query_path}
pid_file = {PID_path}
Expand All @@ -261,15 +254,11 @@ searchd
read_timeout = 5
client_timeout = 360
max_children = 0
max_matches = 1000
read_buffer = 1M
workers = fork

thread_stack = 64K
expansion_limit = 0
prefork_rotation_throttle = 0

compat_sphinxql_magics = 0 # the future is now
}

# --eof--

0 comments on commit f027f82

Please sign in to comment.