From e3c1cae130a5d74d28f5c15016a7b2f79c769598 Mon Sep 17 00:00:00 2001 From: yo mama Date: Thu, 25 Sep 2014 18:55:30 -0700 Subject: first --- sphinxtest.pl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 sphinxtest.pl (limited to 'sphinxtest.pl') 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; -- cgit v1.2.3-70-g09d2