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

..19-Jul-2016-

READMEH A D19-Jul-2016571 1913

suggest.confH A D19-Jul-2016678 4536

suggest.phpH A D19-Jul-20163.6 KiB152109

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