Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Not searching descriptions!

Quote Reply
Not searching descriptions!
 
My site seems to be searching for whatever "searched text" only in the sites "TITLE". Is there a way to make it search the "TITLE & DESCRIPTION" for matches of the typed in search-phrase?

Conan

Quote Reply
Re: Not searching descriptions! In reply to
hi,

your links.def
Quote:
# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [3, 'date', 15, 15, 1, \&get_date, ''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']
);

set this then the visitor can search in your
TITLE, URL & DESCRIPTION fields

Quote:
# Field names you want to allow visitors to search on:
@search_fields = (1,2,5);

------------------
ciao
Nicky
mse.nicky.net


[This message has been edited by Nicky (edited November 21, 1999).]
Quote Reply
Re: Not searching descriptions! In reply to
Thanks Nikki! That did the trick!

Wink
Quote Reply
Re: Not searching descriptions! In reply to
you're welcome Smile

------------------
ciao
Nicky
mse.nicky.net