Gmane
Favicon Gravatar
From: Olly Betts <olly <at> survex.com>
Subject: Re: omega on debian 0.9.5
Newsgroups: gmane.comp.search.xapian.general
Date: 2006-04-22 22:13:35 GMT (3 years, 10 weeks, 4 days, 1 hour and 14 minutes ago)
On Sat, Apr 22, 2006 at 04:42:19PM +0200, Gabriele Francescotto wrote:
> the problem seems to be related to the "scriptindex". [...]
> I hope it will help, even if I didn't check anything in the code...

Thanks, that pointed me at the right place to look.  The attached patch
should fix it.

Cheers,
    Olly
Index: scriptindex.cc
===================================================================
--- scriptindex.cc	(revision 6851)
+++ scriptindex.cc	(working copy)
@@ -349,8 +349,10 @@
 		}
 		if (code == Action::INDEX || code == Action::INDEXNOPOS) {
 		    useless_weight_pos = string::npos;
+		    actions.push_back(Action(code, "", weight));
+		} else {
+		    actions.push_back(Action(code));
 		}
-		actions.push_back(Action(code));
 	    }
 	    j = i;
 	}
_______________________________________________
Xapian-discuss mailing list
Xapian-discuss <at> lists.xapian.org
http://lists.xapian.org/mailman/listinfo/xapian-discuss