Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

Search Catonly and 1.13

Quote Reply
Search Catonly and 1.13
Hi all, very happy i have found this night the thread for the searchincatonly; so i finally lokked at 1.13 and have insert all the needed code inside my scripts (i cant copy the new ones over)
When i finished i enter the two new radio-buttons and finally the search only in cat runs.

BUT:

Before that i could do:

+car +tools

and get everything with car AND tools

or i do:

car tools

and get all with car and/or tools

But now it seems that the + and - would be ignored?!?!

I know i could try it with the different vars; but i really would like to have my + and - back.
Has someone a clue how to get it back?

Robert

Quote Reply
Re: Search Catonly and 1.13 In reply to
I believe now you can use and and or rather than +, -.

Regards,

Eliot Lee
Quote Reply
Re: Search Catonly and 1.13 In reply to
Hmm, in which syntax?

car and tools looks for the words 'car' 'and' 'tools'?
Robert

Quote Reply
Re: Search Catonly and 1.13 In reply to
You have to pass the parameters.... not use "and" or "or".

You can use + and -

You need to pass in "substring" or add a line and pass in "ww" directly.

PUGDOG®
PUGDOG® Enterprises, Inc.
FAQ: http://postcards.com/FAQ


Quote Reply
Re: Search Catonly and 1.13 In reply to
The + and - still work on my site, and I think Pugdog is right about the substring setting.

Look in your search.cgi and make sure you are passing the ww variable to the search routine:

# Get/Set the search options.
...
($in->param('substring')) ? ($ww = 1) : ($ww = 0);

Note: I have the '1' and '0' the other way around to the original search.cgi, and also have an additional setting for ww under this section to default it to zero (you can try both):

$ww = 0;

# Search the category listings.
...
$cat_hits = $catdb->query ( { query => $query, mh => $mh, nh => $nh, ww => $ww, ma => $bool, filter => \%catfilter } );

# Now let's search the links table, but first figure out any filters.
...
$link_hits = $linkdb->query ( { query => $query, mh => $mh, nh => $nh, filter => \%filter, ww => $ww, ma => $bool } );

Hope this helps.

All the best
Shaun

Quote Reply
Re: Search Catonly and 1.13 In reply to
Thank you bioth, i will try this just in a minute.
Another thing on a clean! 1.13 installation is that searching gives out one page more than needed;
so if i go next and next i´ll come to a last site without any result but two times the next-line.
Seems there must be somewhere a -1 for the count.
Have you remark this, too?

Robert

Quote Reply
Re: Search Catonly and 1.13 In reply to
I noticed that, but it seemed so minor in comparason I just ignored it <G>



PUGDOG®
PUGDOG® Enterprises, Inc.
FAQ: http://postcards.com/FAQ