diff options
| author | yo mama <pepper@scannerjammer.com> | 2014-09-25 18:55:30 -0700 |
|---|---|---|
| committer | yo mama <pepper@scannerjammer.com> | 2014-09-25 18:55:30 -0700 |
| commit | e3c1cae130a5d74d28f5c15016a7b2f79c769598 (patch) | |
| tree | 656e49889a78d03d64054989145403b532d1c6f4 /sphinxtest.pl | |
first
Diffstat (limited to 'sphinxtest.pl')
| -rw-r--r-- | sphinxtest.pl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sphinxtest.pl b/sphinxtest.pl new file mode 100644 index 0000000..3ec4f14 --- /dev/null +++ b/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; |
