Gossamer Forum
Home : Products : Links 2.0 : Discussions :

and/or searching

Quote Reply
and/or searching
It seems that when i do a search, links is searching the following way:

keyword "and" keyword

How can i make it so if results fail, it then automatically does a search by:

keyword "or" keyword


Any ideas?
Quote Reply
Re: and/or searching In reply to
The only thing I can think of is to add a search box in your search_error.html template file with the following hidden field:

Code:
<input type="hidden" name="bool" value="or">

You could also add these codes to your search box in the category.html and other pages.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------




[This message has been edited by Eliot (edited November 29, 1999).]
Quote Reply
Re: and/or searching In reply to
Thanks for the reply Eliot.. Can you please go into greater detail of what i need to do to acomplish this.. Im a little bit blind when it comes to all of this as im sure you have already determined by some other posts by me.. Wink

Thankyou..
Quote Reply
Re: and/or searching In reply to
 
Eliot, to let you know, i already have a external search-box, so i do not need to know how to make one.. Will i be editing the external SEARCH BOX, or another file, and if its another file, please tell me where and how.. Your idea is very acceptable to me, just want to know how to implement it correctly.

Conan

Quote Reply
Re: and/or searching In reply to
Okay...deep breath...Okay....

You add the codes I gave you in the search form codes in the search_error.html file, like the following:

Code:
<form method=get action="/cgi-bin/search.cgi">
<input type="bool" name="or">
Search: <input type="TEXT" name="query" value="<%query%>">
<input type="submit" value="Search">
</form>

I DO not know how more clearer I can be about this.

Wink

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: and/or searching In reply to
Please see http://www.gossamer-threads.com/...um3/HTML/003984.html

------------------
Kevin D
www.greeknet.net
webmaster@greeknet.net



Quote Reply
Re: and/or searching In reply to
Just curious, but is "or" searching slower than "and" searching, or is it the same?