注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Package:Sphinx"

From Funtoo
Jump to navigation Jump to search
(initial commit)
 
(more details MOAR)
 
Line 9: Line 9:
{{console|body=###i## emerge app-misc/sphinx}}
{{console|body=###i## emerge app-misc/sphinx}}


=== Configure ===
Copy the well commented configuration file into production location:
{{console|body=###i## cp /etc/sphinx/sphinx.conf.dist /etc/sphinx/sphinx.conf}}
Set the database credentials to query:
{{file|name=/etc/sphinx/sphinx.conf|lang=sql|desc=Change database to the database sphinx will be searching|body=
sql_host = localhost
sql_user = test
sql_pass =
sql_db = test
sql_port = 3306 # optional, default is 3306
}}
To enable service, and start immediately:
{{console|body=###i## rc-update add searchd default && rc}}


{{EbuildFooter}}
{{EbuildFooter}}

Latest revision as of 03:25, June 3, 2015

Sphinx

   Tip

We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

Sphinx search is an alternate method to query database content. It's goal is to be fast and light weight.

Install

root # emerge app-misc/sphinx

Configure

Copy the well commented configuration file into production location:

root # cp /etc/sphinx/sphinx.conf.dist /etc/sphinx/sphinx.conf

Set the database credentials to query:

   /etc/sphinx/sphinx.conf (sql source code) - Change database to the database sphinx will be searching
sql_host		= localhost
	sql_user		= test
	sql_pass		=
	sql_db			= test
	sql_port		= 3306	# optional, default is 3306

To enable service, and start immediately:

root # rc-update add searchd default && rc