diff options
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; |
