[Xapian-discuss] omega on debian 0.9.5
Olly Betts
olly at survex.com
Sat Apr 22 23:13:35 BST 2006
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
-------------- next part --------------
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;
}
More information about the Xapian-discuss
mailing list