PHP Rapid generation of full-text search function under the InnoDB engine Concise tutorial

Source: Internet
Author: User
This article mainly introduces PHP in InnoDB engine under the rapid generation of full-text search function, can be based on the open source search engine Xunsearch implementation, concise description of the installation and use of the steps and related operating skills, the PHP operation of the search engine's small partners can refer to the next

Equipment to be prepared: Liunx (Centos) operating system (Linux only), PHP environment.

This article introduces a Chinese developed search engine Open source project-Xunsearch, which is divided into: Index Server and Search server.

Happy generation of servers under CentOS

wget HTTP://WWW.XUNSEARCH.COM/DOWNLOAD/XUNSEARCH-FULL-LATEST.TAR.BZ2TAR-XJF xunsearch-full-latest.tar.bz2

Ready to install the

CD xunsearch-full-1.3.0/sh setup.sh//This can be a problem with installation failures because there are no extensions such as GCC gcc-c++ installed. Installation with Yum is simple

Install the time for you to enter the installation directory, usually/usr/local/xunsearch enter and then entered Y return, installation a bit long.

Wait for the installation to complete.

After the installation is complete, how to access the cross-server:

installation directory (/usr/local/xunsearch/) +bin/xs-ctl.sh-b a.b.c.d start//listener use this on the specified IP to bind the listener to the IP that the specified extranet can access. Mine is 192.168.1163.130.
There is also a need to use iptables to open 8383 and 8384 ports. The simplest is to close the iptables.

PHP-SDK configuration file modification, as follows

[config file]project.name = Demoproject.default_charset = Utf-8server.index = 192.168.116.130:8383//Index Server address, The default is 8383server.search = 192.168.116.130:8384//Search server address, default is 8384[pid]type = Id[subject]type = title//set indexed field [message] Type = Body  //Set indexed field [chrono]type = numeric[config file]

Please refer to the user manual for details of use: Http://www.xunsearch.com/doc/php/guide/index.overview

Performance test:

The above is all the content of this article, on the PHP development search engine interested in or interested in the InnoDB engine detailed reading, we have encountered problems in the development can also look at the text mentioned in the content Oh!

Acquaintance article:

MySQL storage engine comparison between MyISAM and InnoDB

Data in MySQL is stored in files (or memory) in a variety of different technologies. Each of these technologies uses different storage mechanisms, indexing techniques, locking ...

Introduction to InnoDB lock in MySQL

This article mainly introduced the MySQL in InnoDB lock, very good, has the reference value, needs the friend reference ...

MySQL storage engine InnoDB and MyISAM

InnoDB becomes the default storage engine in MySQL5.5. InnoDB is a transactional storage engine that is designed to handle ...

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.