Sphinx Initial installation and configuration under Window _php tutorial

Source: Internet
Author: User
Tags tidy
A few days ago on the Internet to find the installation of Sphinx information, did not find a very comprehensive, not the way is that it does not pass, today finally the whole out, tidy up a bit.

  1. < span=""> windows < span=""> < span=""> < span=""> < span=""> Win32 release binaries with MySQL support D:/sphinx < span="">< span="">

< span="">

2. < span=""> d:/sphinx/ data < span=""> < span=""> < span=""> log d:/sphinx/sphinx.conf.in < span=""> < span=""> d:/sphinx/bin/sphinx.conf < span="">< span="">

3. Configuration in this there is not much to say, many online, and this step is basically right

4. < span=""> sql < span=""> d:/sphinx/example.sql (This should not be difficult)

5.< span="">

  d:/sphinx/bin>indexer.exe test1 ( < span=""> : Test1 index name, < span=""> sphinx.conf Index Test1 (), about this, I just started to see is in this run Indexer.exe-all, but will error, later see this indexer.exe test1, run, < span=""> success)

  

6. < span=""> ' test '< span="">

  D:/sphinx/bin>search.exe Test

  < span="">:

  

7.< span="">

< span="">Test documents < span="">< span="">

UPDATE ' Test '. ' Documents ' SET ' title ' = ' < span=""> , ' content ' = ' This is my test document number two< /c17> < span=""> ' WHERE ' documents '. ' id ' = 2;

< span="">

D:/sphinx/bin>indexer.exe test1

< span="">' ' < span="">< span="">

D:/sphinx/bin>search.exe < span="">

  

< span="">Windows < span=""> gbk. < span=""> We can use the program to try it on d:/sphinx/api < span=""> foo.php < span=""> utf-8< span="">

  

< span="">Sphinx Searchd< span="">

D:/sphinx/bin>searchd.exe

  

  < span="">

Searchd.exe--install--config d:/sphinx/bin/sphinx.conf

< span="">

< span="">PHP ) < span=""> :

< span="">http://www.test.com/sphinx/api/foo.php ( < span=""> )

The page will output the information found, some of which are:

  

See, it will be "Chinese" into 2 words, hehe, this is because we also useless Chinese participle, it can only one word of the processing, about Chinese participle and other advanced configuration later talk about it.

To this Sphinx basic can simply run!

http://www.bkjia.com/PHPjc/440386.html www.bkjia.com true http://www.bkjia.com/PHPjc/440386.html techarticle A few days ago on the Internet to find the installation of Sphinx information, did not find a very comprehensive, not the way is that it does not pass, today finally the whole out, tidy up a bit. 1. Windows Win32 release Bina ...

  • 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.