Skip to main content.
home | support | download

Back to List Archive

Re: New versions of swish-e 2.x

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Tue Nov 14 2000 - 22:27:37 GMT
Is there a way in the library to get the 
Search words: or Parsed word: as we discussed?  That's the query that been
converted into the search words by WordCharacters and
IgnoreFirst/IgnoreLast and has stop words removed.

Here's one patch.  I don't know what I'm doing, so please check my work ;)

swish-e-2.1.8/src > diff -u ../orig/swish2.c .
--- ../orig/swish2.c    Tue Nov 14 14:20:42 2000
+++ ./swish2.c  Tue Nov 14 14:18:34 2000
@@ -368,6 +368,7 @@
             *numstops=indexf->stopPos;
             return indexf->stopList;
         }
+        indexf = indexf->next;
     }
     *numstops=0;
     return NULL;
@@ -383,6 +384,7 @@
         {
             return getfilewords(sw,c,indexf);
         }
+        indexf = indexf->next;
     }
     return "";
 }

Bill Moseley
mailto:moseley@hank.org
Received on Tue Nov 14 22:29:21 2000