Skip to main content.
home | support | download

Back to List Archive

Re: SWISHE.pm broken in current dev versions, uses

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Fri Oct 12 2001 - 12:51:20 GMT
At 04:47 AM 10/12/01 -0700, Bernhard Weisshuhn wrote:
>Can anybody help with SWISHE.pm? It is broken in the current development
>tree, since it still uses getnumPropertiesToDisplay, which vanished with
>the introduction of zlib compression from swish.h 1.125 and docprop.c 1.72.

My fault.  That removed that obsolete code and I didn't test the perl module.

The fix is in CVS, or you can just edit SWISHE.xs as shown below.

Note that yesterday I checked into CVS a rather large update, so I'm very
interested to hear from anyone testing. There's someone indexing about 4
million documents, and that's brought up some memory issues that just are
not significant when indexing 20,000 documents.  So some code was reworked.


Index: SWISHE.xs
Index: SWISHE.xs
===================================================================
RCS file: /cvsroot/swishe/swish-e/perl/SWISHE.xs,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- SWISHE.xs	2001/07/26 19:29:55	1.11
+++ SWISHE.xs	2001/10/12 12:29:50	1.12
@@ -12,6 +12,7 @@
 #include "../src/stemmer.h"
 #include "../src/merge.h"
 #include "../src/docprop.h"
+#include "../src/search.h"
 
 
 MODULE = SWISHE  PACKAGE = SWISHE
@@ -62,7 +63,10 @@
      {
         sw = (SWISH *) result->sw;
 
-        numPropertiesToDisplay = getnumPropertiesToDisplay(handle);
+        numPropertiesToDisplay = sw->Search->numPropertiesToDisplay
+           ? sw->Search->numPropertiesToDisplay
+           : 0;
+
 
         PUSHMARK(SP);
 


Bill Moseley
mailto:moseley@hank.org
Received on Fri Oct 12 12:51:39 2001