Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Zip code field - making it searchable...

Quote Reply
Zip code field - making it searchable...
I just added a "Zip" field for a site's Zip Code in the Links Table Definition area. All I want to do is to have that field be searchable along with the Title, Description fields, etc. so a person can just type in a Zip Code and get the proper site results that way. What code needs to be added where to make this happen?

Thanks in advance.

mgeyman
Quote Reply
Re: [mgeyman] Zip code field - making it searchable... In reply to
In Database > Links > Properties, set its weight to either 1 or 2....that will make the contents of it have a value when seared...

If you want to specifically search for it...you could use something like;

search.cgi?query=&Zip=RDF323

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Zip code field - making it searchable... In reply to
Andy,

Hmmm. I tried what you had mentioned but it still doesn't pick the "Zip" field data up even after bumping up the weight.

mgeyman
Quote Reply
Re: [mgeyman] Zip code field - making it searchable... In reply to
Are you using Internal indexing?

Cheers
Klaus

http://www.ameinfo.com
Quote Reply
Re: [klauslovgreen] Zip code field - making it searchable... In reply to
Yes. I'm using Internal Indexing.


Position Column
Name
Column
Type
Not
Null
Default Form
Display
Form
Type
Form
Regex
Search
Weight


24 Zip INT No Zip TEXT 3



mgeyman
Quote Reply
Re: [mgeyman] Zip code field - making it searchable... In reply to
If you've already altered the weight - try going...

Admin > Database > Rebuild Search

and see if that helps.

cheers,

r.
Quote Reply
Re: [ryel01] Zip code field - making it searchable... In reply to
That definitely did the trick!!

Thanks ryel01.

mgeyman
Quote Reply
Re: [mgeyman] Zip code field - making it searchable... In reply to
no problemo. Smile

r