Sphinx1 Downloads Sphinxhttp://sphinxsearch.com/2 compiling the installationTAR-ZXVF sphinx.tar.gz./configure--prefix=/usr/local/sphinx--with-mysql=/usr/local/mysql make && make installImportant Three commands in Sphinx (Sphinx installed bin
The company project just import a large number of product data, and then found that the site's product search is very card, originally is the original SQL like to do fuzzy search, the amount of data 20W can also be accepted, but millions of cards,
One, software preparation
coreseek4.1 (includes the latest version of Coreseek Beta and mmseg, and test packages "built-in Chinese word segmentation and search, Word segmentation, MySQL data source, Python
Important three commands in the Sphinx, Splinx installed in the bin directory
Indexer CREATE INDEX command, searchd START process command, Search command searching command (no longer exists in new version)
Download Sphinx and
Build Coreseek (SPHINX+MMSEG3) Detailed installation configuration +php Sphinx Extension installation +php Call example
A document contains examples of installation, incremental backup, extensions, API invocation, and eliminates the time to find a
On the official website to download the latest sphinx, the recent database to be searched to play dead, think or add an index it. Here to share the installation of Sphinx and PHP extension sphinx.so installation method, there may be many similar
Before installing, make sure you have installed the most common components, and then download the latest Sphinx on the official website.
Yum install-y python Python-develhttp://sphinxsearch.com/downloads/release/
Please use the stable version, the
Sphinx is a full-text search engine developed by the Russian people Andrew Aksyonoff. Intent to provide high-speed, low-footprint, high-result correlation full-text search capabilities for other applications. Sphinx can be very easy to integrate
Turn fromhttp://blog.csdn.net/fenglailea/article/details/38115821First you must have installed the SphinxHow to install Sphinx see: Http://blog.csdn.net/fenglailea/article/details/38111661#t0Enter the Sphinx installation directory
There are two ways that Sphinx inherits from the PHP program:Sphinx PHP Module: Compile and build PHP extension moduleSphinx API classes: Use the classes provided by the Sphinx directlyFirst we should use Sphinx to do several things:1). Create MySQL
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.