summaryrefslogtreecommitdiff
path: root/sphinx_stuff/sphinxtest.pl
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx_stuff/sphinxtest.pl')
-rw-r--r--sphinx_stuff/sphinxtest.pl10
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;