Skip to main content.
home | support | download

Back to List Archive

Re: Problems with DEFAULT_RULE

From: Ander <redna(at)not-real.euskalerria.org>
Date: Thu Jun 05 2003 - 07:53:24 GMT
Thanks, now It runs ok.


At 10:28 04/06/2003 -0700, you wrote:
>On Wed, Jun 04, 2003 at 06:55:17AM -0700, Ander wrote:
> >       Hi:
> >
> >       I'm attempting to define "or" as my default searching rule. So I've
> > changed DEFAULT_RULE to OR_RULE in the config.h file.
> >       I've compiled swish-e again, but the default rule still is "and". 
> What's
> > wrong?
>
>We all use Google and like default being AND!
>
>(this diff is on the current cvs, but you can just look in search.c and
>fix):
>
>Index: search.c
>===================================================================
>RCS file: /cvsroot/swishe/swish-e/src/search.c,v
>retrieving revision 1.122
>diff -u -u -r1.122 search.c
>--- search.c    21 Apr 2003 07:20:00 -0000      1.122
>+++ search.c    4 Jun 2003 17:25:54 -0000
>@@ -1149,7 +1149,7 @@
>
>
>          if (rulenum == NO_RULE)
>-            rulenum = AND_RULE;
>+            rulenum = DEFAULT_RULE;
>
>
>          if (isunaryrule(word))  /* is it a NOT? */
>
>
>
>
>--
>Bill Moseley
>moseley@hank.org
Received on Thu Jun 5 07:53:37 2003