# !*: Do not change the "releases_rt" or "predb_rt" words.
index releases_rt
{
	# !*: Do not change this.
	type			= rt

	# dictionary type, 'crc' or 'keywords'
	# crc is faster to index when no substring/wildcards searches are needed
	# crc with substrings might be faster to search but is much slower to index
	# (because all substrings are pre-extracted as individual keywords)
	# keywords is much faster to index with substrings, and index is much (3-10x) smaller
	# keywords supports wildcards, crc does not, and never will
	# optional, default is 'keywords'
	# dict			= keywords

	# !*: These allow wildcard searches, they take more ram/disk space.
	# !*: If you want to turn it off, put min_infix_len, min_prefix_len and enable_star to 0.
	#
	# !*: min_prefix_len Allows wildcard searches from the start of the word. ie: to search fishing you can
	#     do fish* ; This mode takes less ram/disk space than min_infix_len. To set it on, put min_infix_len to 0
	#     and min_prefix_len to 1
	#
	# !*: min_infix_len Allows wildcard searches from any position in the word, ie: *ish* would match fishing
	#     This comes at the expense of more ram/disk space.
	#     NOTE: min_infix_len DOES NOT WORK FOR RT INDEXES ON SOME VERSIONS OF SPHINX, IT WILL DEFAULT TO min_prefix_len
	#           IF YOUR SPHINX VERSION DOES NOT SUPPORT IT.
	#
	#
	min_prefix_len 		= 0
	min_infix_len 		= 2

	# Expands keywords with their exact forms (i.e. the forms of the keywords before applying any morphological modifications) and/or stars when possible. The supported values are:
    #
    # 1 - expand to both the exact form and the form with the stars. running will become (running | *running* | =running)
    # exact - augment the keyword with only its exact form. running will become (running | =running)
    # star - augment the keyword by adding * around it. running will become (running | *running*) Optional, default is 0 (do not expand keywords).
    # expand_keywords      = 1

	# !*: Path to where the index files will be stored.
	# !*: http://sphinxsearch.com/docs/current.html#conf-path
	path			= /var/lib/manticore/data/releases_rt

	# RAM chunk size limit
	# RT index will keep at most this much data in RAM, then flush to disk
	# !*: http://sphinxsearch.com/docs/current.html#conf-rt-mem-limit
	rt_mem_limit		= 1024M

	# Full-text field declarations.
	# !*: Do not change these.
	rt_field		= name
	rt_field		= searchname
	rt_field		= fromname
	rt_field		= filename
	rt_field        = categories_id
	rt_attr_uint	= dummy

}

# !*: Do not change the "predb_rt" word.
index predb_rt
{
	# !*: Do not change this.
	type			= rt

	# dictionary type, 'crc' or 'keywords'
    # crc is faster to index when no substring/wildcards searches are needed
    # crc with substrings might be faster to search but is much slower to index
    # (because all substrings are pre-extracted as individual keywords)
    # keywords is much faster to index with substrings, and index is much (3-10x) smaller
    # keywords supports wildcards, crc does not, and never will
    # optional, default is 'keywords'
    # dict			= keywords

	# !*: These allow wildcard searches, they take more ram/disk space.
	# !*: If you want to turn it off, put min_infix_len, min_prefix_len and enable_star to 0.
	#
	# !*: min_prefix_len Allows wildcard searches from the start of the word. ie: to search fishing you can
	#     do fish* ; This mode takes less ram/disk space than min_infix_len. To set it on, put min_infix_len to 0
	#     and min_prefix_len to 1
	#
	# !*: min_infix_len Allows wildcard searches from any position in the word, ie: *ish* would match fishing
	#     This comes at the expense of more ram/disk space.
	#     NOTE: min_infix_len DOES NOT WORK FOR RT INDEXES ON SOME VERSIONS OF SPHINX, IT WILL DEFAULT TO min_prefix_len
	#           IF YOUR SPHINX VERSION DOES NOT SUPPORT IT.
	#
	# !*: DO NOT ENABLE BOTH min_prefix_len AND min_infix_len AT THE SAME TIME.
	#
	min_prefix_len 		= 0
	min_infix_len 		= 2

	# Expands keywords with their exact forms (i.e. the forms of the keywords before applying any morphological modifications) and/or stars when possible. The supported values are:

    # 1 - expand to both the exact form and the form with the stars. running will become (running | *running* | =running)
    # exact - augment the keyword with only its exact form. running will become (running | =running)
    # star - augment the keyword by adding * around it. running will become (running | *running*) Optional, default is 0 (do not expand keywords).
	# expand_keywords      = 1

	# !*: Path to where the index files will be stored.
	# !*: http://sphinxsearch.com/docs/current.html#conf-path
	path			= /var/lib/manticore/data/predb_rt

	# RAM chunk size limit
	# RT index will keep at most this much data in RAM, then flush to disk
	# !*: http://sphinxsearch.com/docs/current.html#conf-rt-mem-limit
	rt_mem_limit		= 1024M

	# Full-text field declarations.
	# !*: Do not change these.
	rt_field		= title
	rt_field		= filename
	rt_attr_uint	= dummy
	rt_attr_string 	= title
	rt_attr_string	= filename
	rt_attr_string 	= source

}

indexer

{
	# Memory limit, in bytes, kiloytes (16384K) or megabytes (256M)
	# Default is 32M, max is 2047M, recommended is 256M to 1024M
	# !*: http://sphinxsearch.com/docs/current.html#conf-mem-limit
	mem_limit		= 1024M

	# Maximum IO calls per second (for I/O throttling)
	# optional, default is 0 (unlimited)
	# !*: http://sphinxsearch.com/docs/current.html#conf-max-iops
	# max_iops		= 0

	# Maximum IO call size, bytes (for I/O throttling)
	# optional, default is 0 (unlimited)
	# !*: http://sphinxsearch.com/docs/current.html#conf-max-iosize
	# max_iosize		= 0

	# Write buffer size, bytes
	# several (currently up to 4) buffers will be allocated
	# write buffers are allocated in addition to mem_limit
	# optional, default is 1M
	# !*: http://sphinxsearch.com/docs/current.html#conf-write-buffer
	# write_buffer		= 1M

	# maximum file field adaptive buffer size
	# optional, default is 8M, minimum is 1M
	# !*: http://sphinxsearch.com/docs/current.html#conf-max-file-field-buffer
	# max_file_field_buffer	= 8M

	# Lemmatizer cache size. Optional, default is 256K.
	# !*: http://sphinxsearch.com/docs/current.html#conf-lemmatizer-cache
	# lemmatizer_cache = 256K
}

searchd
{
	# [hostname:]port[:protocol], or /unix/socket/path to listen on
	# known protocols are 'sphinx' (SphinxAPI) and 'mysql41' (SphinxQL)
	#
	# multi-value, multiple listen points are allowed
	# optional, defaults are 9312:sphinx and 9306:mysql41, as below
	# listen			= 127.0.0.1
	# listen			= 192.168.0.1:9312
	# listen			= 9312
	# listen			= /var/run/searchd.sock

	#     Setting anything else can cause issues, beware.
	#     The first listen is for the sphinxse plugin in MySQL to communicate with the sphinx server,
	#     so we can select from the RT index.
	#     The second listen is for sphinxql, to insert and delete data from the RT index.
	# !*: http://sphinxsearch.com/docs/current.html#conf-listen
	listen			= 9312:sphinx
	listen			= 9306:mysql
	listen	        = 9308:http

	# log file, searchd run info is logged here
	# optional, default is 'searchd.log'
	# !*: Make sure this folder exists and is writable, if you have issues starting sphinx,
	#     look at /var/log/upstart/sphinxsearch.log also.
	# !*: http://sphinxsearch.com/docs/current.html#conf-log
	log			= /var/log/manticore/searchd.log

	# query log file, all search queries are logged here
	# optional, default is empty (do not log queries)
	# !*: Not recommended enabling this.
	# !*: http://sphinxsearch.com/docs/current.html#conf-query-log
	# query_log		= /var/log/sphinxsearch/query.log

	# query log file format
	# optional, known values are plain and sphinxql, default is plain
	# !*: http://sphinxsearch.com/docs/current.html#conf-query-log-format
	# query_log_format		= sphinxql

	# client read timeout, seconds
	# optional, default is 5
	# !*: http://sphinxsearch.com/docs/current.html#conf-read-timeout
	network_timeout		= 5

	# request timeout, seconds
	# optional, default is 5 minutes
	# !*: http://sphinxsearch.com/docs/current.html#conf-client-timeout
	client_timeout		= 300

	# maximum amount of children to fork (concurrent searches to run)
	# optional, default is 0 (unlimited)
	# !*: http://sphinxsearch.com/docs/current.html#conf-max-children
	# max_children		= 0

	# PID file, searchd process ID file name
	# mandatory
	# !*: Sphinx will not start if this folder does not exist.
	# !*: http://sphinxsearch.com/docs/current.html#conf-pid-file
	pid_file		= /var/run/manticore/searchd.pid

	# max amount of matches the daemon ever keeps in RAM, per-index
	# WARNING, THERE'S ALSO PER-QUERY LIMIT, SEE SetLimits() API CALL
	# default is 1000 (just like Google)
	# !*: Note, this is deprecated in v2.2.3 of sphinx.
	#max_matches		= 10000

	# seamless rotate, prevents rotate stalls if precaching huge datasets
	# optional, default is 1
	# !*: http://sphinxsearch.com/docs/current.html#conf-seamless-rotate
	seamless_rotate		= 1

	# whether to forcibly preopen all indexes on startup
	# optional, default is 1 (preopen everything)
	# !*: http://sphinxsearch.com/docs/current.html#conf-preopen-indexes
	preopen_tables		= 1

	# whether to unlink .old index copies on succesful rotation.
	# optional, default is 1 (do unlink)
	# !*: http://sphinxsearch.com/docs/current.html#conf-unlink-old
	unlink_old		= 1

	# attribute updates periodic flush timeout, seconds
	# updates will be automatically dumped to disk this frequently
	# optional, default is 0 (disable periodic flush)
	# !*: http://sphinxsearch.com/docs/current.html#conf-attr-flush-period
	# attr_flush_period	= 0

	# max allowed network packet size
	# limits both query packets from clients, and responses from agents
	# optional, default size is 8M
	# !*: http://sphinxsearch.com/docs/current.html#conf-max-packet-size
	max_packet_size		= 16M

	# MVA updates pool size
 	# shared between all instances of searchd, disables attr flushes!
	# optional, default size is 1M
	# mva_updates_pool	= 1M

	# max allowed per-query filter count
	# optional, default is 256
	# !*: http://sphinxsearch.com/docs/current.html#conf-max-filters
	max_filters		= 256

	# max allowed per-filter values count
	# optional, default is 4096
	# !*: http://sphinxsearch.com/docs/current.html#conf-max-filter-values
	max_filter_values	= 4096

	# socket listen queue length
	# optional, default is 5
	# !*: http://sphinxsearch.com/docs/current.html#conf-listen-backlog
	# listen_backlog		= 5

	# per-keyword read buffer size
	# optional, default is 256K
	# !*: http://sphinxsearch.com/docs/current.html#conf-read-buffer
	# read_buffer		= 256K

	# unhinted read size (currently used when reading hits)
	# optional, default is 32K
	# !*: http://sphinxsearch.com/docs/current.html#conf-read-unhinted
	# read_unhinted		= 32K

	# max allowed per-batch query count (aka multi-query count)
	# optional, default is 32
	# !*: http://sphinxsearch.com/docs/current.html#conf-max-batch-queries
	# max_batch_queries	= 32

	# max common subtree document cache size, per-query
	# optional, default is 0 (disable subtree optimization)
	# !*: http://sphinxsearch.com/docs/current.html#conf-subtree-docs-cache
	# subtree_docs_cache	= 4M

	# max common subtree hit cache size, per-query
	# optional, default is 0 (disable subtree optimization)
	# !*: http://sphinxsearch.com/docs/current.html#conf-subtree-hits-cache
	# subtree_hits_cache	= 8M

	# multi-processing mode (MPM)
	# known values are none, fork, prefork, and threads
	# optional, default is fork
	# !*: Do not change this.
	# !*: http://sphinxsearch.com/docs/current.html#conf-workers
	# workers are deprecated in latest manticore version
	# workers = threads

	# max threads to create for searching local parts of a distributed index
	# optional, default is 0, which means disable multi-threaded searching
	# should work with all MPMs (ie. does NOT require workers=threads)
	# !*: http://sphinxsearch.com/docs/current.html#conf-dist-threads
	# dist_threads		= 4

	# binlog files path; use empty string to disable binlog
	# optional, default is build-time configured data directory
	# binlog_path		= # disable logging
	# !*: This is recommended, it rebuilds indexes if your server crashes.
	# !*: http://sphinxsearch.com/docs/current.html#conf-binlog-path
	binlog_path		= /var/lib/manticore/data

	# binlog flush/sync mode
	# 0 means flush and sync every second
	# 1 means flush and sync every transaction
	# 2 means flush every transaction, sync every second
	# optional, default is 2
	# !*: You should leave this to 2
	# !*: http://sphinxsearch.com/docs/current.html#conf-binlog-flush
	binlog_flush		= 2

	# binlog per-file size limit
	# optional, default is 128M, 0 means no limit
	# !*: http://sphinxsearch.com/docs/current.html#conf-binlog-max-log-size
	binlog_max_log_size	= 512M

	# default server-wide collation
	# optional, default is libc_ci
	# !*: http://sphinxsearch.com/docs/current.html#conf-collation-server
	# collation_server		= utf8_general_ci

	# server-wide locale for libc based collations
	# optional, default is C
	# !*: http://sphinxsearch.com/docs/current.html#conf-collation-libc-locale
	# collation_libc_locale	= ru_RU.UTF-8

	# trusted plugin directory
	# optional, default is empty (disable UDFs)
	# !*: http://sphinxsearch.com/docs/current.html#conf-plugin-dir
	# plugin_dir			= /usr/local/sphinx/lib

	# version string returned to MySQL network protocol clients
	# optional, default is empty (use Sphinx version)
	# !*: http://sphinxsearch.com/docs/current.html#conf-mysql-version-string
	# mysql_version_string	= 5.0.37

	# RT RAM chunks flush period
	# optional, default is 0 (no periodic flush)
	# !*: http://sphinxsearch.com/docs/current.html#conf-rt-flush-period
	rt_flush_period		= 900

	# per-thread stack size, only affects workers=threads mode
	# optional, default is 64K
	# !*: http://sphinxsearch.com/docs/current.html#conf-thread-stack
	# thread_stack			= 128K

	# per-keyword expansion limit (for dict=keywords prefix searches)
	# optional, default is 0 (no limit)
	# !*: http://sphinxsearch.com/docs/current.html#conf-expansion-limit
	expansion_limit		= 1000

	# threaded server watchdog (only used in workers=threads mode)
	# optional, values are 0 and 1, default is 1 (watchdog on)
	# !*: Do not set this to 0.
	# !*: http://sphinxsearch.com/docs/current.html#conf-watchdog
	# watchdog				= 1

	# SphinxQL compatibility mode (legacy columns and their names)
	# optional, default is 0 (SQL compliant syntax and result sets)
	# !*: Deprecated in v2.2.1
	# compat_sphinxql_magics	= 1

	# A maximum number of I/O operations (per second) that the RT chunks merge thread is allowed to start.
	# This directive lets you throttle down the I/O impact arising from the OPTIMIZE statements.
	# Optional, default is 0 (no limit).
	# !*: http://sphinxsearch.com/docs/current.html#conf-rt-merge-iops
	# rt_merge_iops = 0

	# A maximum size of an I/O operation that the RT chunks merge thread is allowed to start.
	# This directive lets you throttle down the I/O impact arising from the OPTIMIZE statements.
	# Optional, default is 0 (no limit).
	# !*: http://sphinxsearch.com/docs/current.html#conf-rt-merge-maxiosize
	# rt_merge_maxiosize = 0
}

# --eof--
