tomat 2715bb19ef merged rel21 branch (up to r3757) back into trunk 13 лет назад
..
README 0e3dabd55b added suggestions sample 17 лет назад
suggest.conf 2715bb19ef merged rel21 branch (up to r3757) back into trunk 13 лет назад
suggest.php 2715bb19ef merged rel21 branch (up to r3757) back into trunk 13 лет назад

README

Suggestions sample
-------------------

0) What's this. This sample shows how to implement simple keyword
correction suggestions (ie. "did you mean") using Sphinx.

1) Requirements. You will need Sphinx, MySQL, and PHP CLI.

2) Quickstart. (Skip first indexer command to use bundled sample.)

indexer YOURINDEX --config YOURCONFIG.CONF --buildstops dict.txt 100000 --buildfreqs
cat dict.txt | php suggest.php --builddict > dict.sql
mysql -u root test < dict.sql
indexer --config suggest.conf --all
searchd --config suggest.conf
php suggest.php --query sphynx

--eof--