# Sample Sphinx search config file. # Provided as an example only for the blog post: # http://astellar.com/2011/12/replacing-mysql-full-text-search-with-sphinx/ # # Please make sure you replaced placeholders with correct MySQL credentials # and Sphinx paths before use # # Copyright (c) 2012 Vladimir Fedorkov (http://astellar.com/) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE # ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # Consulting services for MySQL and Sphinx are available upon request # http://astellar.com/contact-me/ && http://astellar.com/consulting # source my_source { type = mysql sql_host = localhost sql_user = sql_pass = sql_db = sql_port = 3306 sql_query = SELECT id, title, description FROM } index my_first_sphinx_index { source = my_source path = /var/index1 docinfo = extern charset_type = utf-8 } indexer { mem_limit = 256M write_buffer = 8M } searchd { listen = 9312 listen = 9306:mysql41 pid_file = /var/searchd.pid max_matches = 1000 }