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