[interchange-cvs] interchange - jon modified lib/Vend/Swish.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Sat May 17 14:34:42 UTC 2008
User: jon
Date: 2008-05-17 14:34:42 GMT
Modified: lib/Vend Swish.pm
Log:
Standardize indents for commented debug statements.
Disable error log output for normal searches.
Clarify origin of module.
Revision Changes Path
1.14 interchange/lib/Vend/Swish.pm
rev 1.14, prev_rev 1.13
Index: Swish.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Swish.pm,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -u -r1.13 -r1.14
--- Swish.pm 15 May 2008 21:49:25 -0000 1.13
+++ Swish.pm 17 May 2008 14:34:42 -0000 1.14
@@ -1,8 +1,8 @@
# Vend::Swish - Search indexes with Swish-e's new SWISH::API
#
-# $Id: Swish.pm,v 1.13 2008-05-15 21:49:25 racke Exp $
+# $Id: Swish.pm,v 1.14 2008-05-17 14:34:42 jon Exp $
#
-# Adapted from Vend::Swish by Brian Miller <brian at endpoint.com>
+# Adapted from earlier Vend::Swish by Brian Miller <brian at endpoint.com>
#
# Copyright (C) 2005-2008 Interchange Development Group
# Copyright (C) 2002 Mike Heins <mikeh at perusion.net>
@@ -26,7 +26,7 @@
require Vend::Search;
@ISA = qw(Vend::Search);
-$VERSION = substr(q$Revision: 1.13 $, 10);
+$VERSION = substr(q$Revision: 1.14 $, 10);
use strict;
use SWISH::API;
@@ -94,7 +94,7 @@
sub init {
my ($s, $options) = @_;
- #::logDebug("initing Swish search, Swish=" . Vend::Util::uneval($Vend::Cfg->{Swish}));
+#::logDebug("initing Swish search, Swish=" . Vend::Util::uneval($Vend::Cfg->{Swish}));
$Vend::Cfg->{Swish} ||= {};
@{$s}{keys %Default} = (values %Default);
@@ -236,7 +236,7 @@
#
# $search_string = $s->build_search(\@pats);
- #::logDebug("Swish search string is $search_string within " . join(', ', @sf));
+#::logDebug("Swish search string is $search_string within " . join(', ', @sf));
my $results = $engine->Query( $search_string );
if ($engine->Error) {
@@ -262,7 +262,7 @@
my $index = $result->Property('swishdbfile');
my $parsed_query = parse_query( join ' ', $results->ParsedWords( $index ) );
- #::logDebug("parsed query: " . Vend::Util::uneval($parsed_query));
+#::logDebug("parsed query: " . Vend::Util::uneval($parsed_query));
$_swish_highlighters->{$index}->highlight( \$text, $parsed_query->{'swishdefault'}, undef, $result );
}
@@ -316,7 +316,7 @@
if (! $s->{mv_return_reference}) {
$s->{mv_results} = \@out;
- #::logDebug("returning search: " . Vend::Util::uneval($s));
+#::logDebug("returning search: " . Vend::Util::uneval($s));
return $s;
}
elsif ($s->{mv_return_reference} eq 'LIST') {
@@ -340,7 +340,7 @@
$s->{mv_results} = \%hash;
}
- #::logDebug("returning search: " . Vend::Util::uneval($s));
+#::logDebug("returning search: " . Vend::Util::uneval($s));
return $s;
}
@@ -405,7 +405,7 @@
$search_string = $gall[0];
}
- ::logError ("Search string is: $search_string");
+ #::logError ("Search string is: $search_string");
return $search_string;
}
More information about the interchange-cvs
mailing list