README 571 B

123456789101112131415161718
  1. Suggestions sample
  2. -------------------
  3. 0) What's this. This sample shows how to implement simple keyword
  4. correction suggestions (ie. "did you mean") using Sphinx.
  5. 1) Requirements. You will need Sphinx, MySQL, and PHP CLI.
  6. 2) Quickstart. (Skip first indexer command to use bundled sample.)
  7. indexer YOURINDEX --config YOURCONFIG.CONF --buildstops dict.txt 100000 --buildfreqs
  8. cat dict.txt | php suggest.php --builddict > dict.sql
  9. mysql -u root test < dict.sql
  10. indexer --config suggest.conf --all
  11. searchd --config suggest.conf
  12. php suggest.php --query sphynx
  13. --eof--