diff options
| author | yo mama <pepper@scannerjammer.com> | 2015-03-23 15:57:36 -0700 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2015-03-23 15:57:36 -0700 |
| commit | a6bbef0937649cd92a4b378a8454a96e6110bd99 (patch) | |
| tree | 582079ef3abdce03aeefa1b3b9ddd5d352bc9843 /sphinx_stuff/sphinxtest.pl | |
| parent | 00c7f6129f87d77788aa92e08dd77b7b473f9a71 (diff) | |
Diffstat (limited to 'sphinx_stuff/sphinxtest.pl')
| -rw-r--r-- | sphinx_stuff/sphinxtest.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sphinx_stuff/sphinxtest.pl b/sphinx_stuff/sphinxtest.pl new file mode 100644 index 0000000..3ec4f14 --- /dev/null +++ b/sphinx_stuff/sphinxtest.pl @@ -0,0 +1,10 @@ +#!/usr/bin/perl +use Data::Dumper; +use Sphinx::Search; + +$sph = Sphinx::Search->new(); + +$results = $sph->SetMatchMode(SPH_MATCH_ALL) + ->SetSortMode(SPH_SORT_RELEVANCE) + ->Query("dolly"); +print Dumper $results; |
