Re: AW: [htdig] AND OR in restrict


Subject: Re: AW: [htdig] AND OR in restrict
From: J. op den Brouw (msql@st.hhs.nl)
Date: Tue Aug 15 2000 - 06:08:12 PDT


Yes they do, IFAIK.

Use the '|' to OR two or more resticts

restrict=g21|g22

Or in a HTML form like:

<INPUT TYPE=HIDDEN NAME="restrict" VALUE="g21|g22">

"Reich, Stefan" wrote:
>
> Hello,
>
> I don't think logical operators are supported for restrict (at least for
> HTDIG <= 3.1.5)
> You can send more than one restrict, which acts like an or
> (restrict=g21&restrict=g22)
> And wouldn't make sense, because a single document has only one url.
>
> Bye
>
> Stefan
>
> -----Ursprüngliche Nachricht-----
> Von: Eric Persson [mailto:eric@unc.se]
> Gesendet: Dienstag, 15. August 2000 14:17
> An: 'htdig@htdig.org'
> Betreff: [htdig] AND OR in restrict
>
> Hi !
>
> I'm trying to make a restrict with or clauses. I want the search to restrict
> by
> G21 OR G22. I tried doing restrict=G21|G22 but it doesnt seem to return
> anything at all.
>
> I am not using the builin forms since I fetch the result with a small
> script,
> so I want to be able to send the restrict piece urlencoded.
>
> But how do I get the or stuff to work?
>
> Best regards,
> Eric

--Jesse

------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-unsubscribe@htdig.org
You will receive a message to confirm this.
List archives: <http://www.htdig.org/mail/menu.html>
FAQ: <http://www.htdig.org/FAQ.html>



This archive was generated by hypermail 2b28 : Mon Aug 14 2000 - 19:57:35 PDT