Skip to main content.
home | support | download

Back to List Archive

Re: Problem swish-e not finding words present in index

From: <moseley(at)not-real.hank.org>
Date: Thu Sep 04 2003 - 04:03:59 GMT
Here's a patch you can try.  It's small enough you can just hand edit 
parser.c if you like.

Index: parser.c
===================================================================
RCS file: /cvsroot/swishe/swish-e/src/parser.c,v
retrieving revision 1.47
diff -u -r1.47 parser.c
--- parser.c    28 Mar 2003 16:31:39 -0000      1.47
+++ parser.c    4 Sep 2003 03:49:05 -0000
@@ -1140,14 +1140,14 @@
 
         /* If title is a property, turn on the property flag */
         if ( parse_data->titleProp )
-            parse_data->titleProp->in_tag = start ? 1 : 0;
+            parse_data->titleProp->in_tag += bump;
 
 
         /* If title is a metaname, turn on the indexing flag */
         if ( parse_data->titleMeta )
         {
-            parse_data->titleMeta->in_tag = start ? 1 : 0;
-            parse_data->swishdefaultMeta->in_tag = start ? 1 : 0;
+            parse_data->titleMeta->in_tag += bump;
+            parse_data->swishdefaultMeta->in_tag +=bump;
         }


-- 
Bill Moseley
moseley@hank.org
Received on Thu Sep 4 04:04:14 2003