Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Search in added fields

Quote Reply
Search in added fields
Hello everybody, thanks for the great script and all the modifications.

One question:

I have added a few fields to the database so that I can use it as a classified ads forum. I have specified these fields in the links.def as described in the forum on adding new fields. I even used Bobsies/criscos script to ?register? the new fields in the links.db.

Q: Why does my search not find words that I put into the new fields and that are displayed in the subcategories? How can I change this? And does the search function find words if I put in numerous words but only one matches the input of my database?

I would really appreciate a little help on that. I did not find an answer to this in the forum.

Thank you.


Torsten Trebess
Quote Reply
Re: Search in added fields In reply to
In Reply To:
Q: Why does my search not find words that I put into the new fields and that are displayed in the subcategories? How can I change this?
Uh...you need to add the NEW FIELD numbers in the @search_fields array in the links.def file.

In Reply To:
And does the search function find words if I put in numerous words but only one matches the input of my database?
If you use the BOOL OR connector option, then yes...if you use BOOL AND connector, then no.

Regards,

Eliot Lee
Quote Reply
Re: Search in added fields In reply to
Hello Eliot, I did that already but it does not seem to work. I assigned field number 14, 15, and so on to the search array in the links.def as already said (by you I guess) in the adding a new field forum.

Maybe I did something wrong but I cannot find it.( I do not like to say because it sounds like I did not try hard enough but I did).

Is there something else...





Torsten Trebess
Quote Reply
Re: Search in added fields In reply to
Hello Eliot, maybe you can help me...

What I did is the following:
I put in a new fields in the link.def
Preis => [10, 'alpha', 40, 40, 1, '', ''],
Anzahl => [11, 'alpha', 40, 75, 1, '', ''],
Ausstattung => [12, 'alpha', '40x3', 500, 1, '', ''],
Stadtbezirk => [13, 'alpha', 40, 75, 1, '', ''],
Groesse => [14, 'alpha', 40, 75, 0, '', ''],
'Contact Email' => [15, 'alpha', 40, 75, 1, '', '.+@.+\..+']
and the I did the following:

@search_fields = (10,11,12,13,14);

The search engine now finds words in a number of fields but not in the "Ausstattung"-field although it displays the information at the category page.

Maybe there is a remedy to this


Torsten Trebess
Quote Reply
Re: Search in added fields In reply to
Don't know what to tell you...Are you using the AND connector OR the OR connector? Please be specific about the search form you are using as well...the advanced or search box within other pages in your directory.

Regards,

Eliot Lee