• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..26-Aug-2013-

READMEH A D08-Jan-2009571 1913

suggest.confH A D05-Aug-2011695 4637

suggest.phpH A D05-Aug-20113.4 KiB145107

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