Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 26-Aug-2013 | - | ||||
README | H A D | 08-Jan-2009 | 571 | 19 | 13 | |
suggest.conf | H A D | 05-Aug-2011 | 695 | 46 | 37 | |
suggest.php | H A D | 05-Aug-2011 | 3.4 KiB | 145 | 107 |
README
1Suggestions sample 2------------------- 3 40) What's this. This sample shows how to implement simple keyword 5correction suggestions (ie. "did you mean") using Sphinx. 6 71) Requirements. You will need Sphinx, MySQL, and PHP CLI. 8 92) Quickstart. (Skip first indexer command to use bundled sample.) 10 11indexer YOURINDEX --config YOURCONFIG.CONF --buildstops dict.txt 100000 --buildfreqs 12cat dict.txt | php suggest.php --builddict > dict.sql 13mysql -u root test < dict.sql 14indexer --config suggest.conf --all 15searchd --config suggest.conf 16php suggest.php --query sphynx 17 18--eof-- 19