Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

1.1b2: search.cgi bug

Quote Reply
1.1b2: search.cgi bug
i haven't determined what it is yet, but no matter what i search for i get no matching links.. and on search-ni.cgi i always get -2 categories and -2 links..

i'll look into it some more..

jerry
Quote Reply
Re: 1.1b2: search.cgi bug In reply to
alex.. another bug is the span pages..

as seen on

http://www.gossamer-threads.com/...h.cgi?query=resource

it starts with 2.. i think it's a matter of the $nh..

but i have to know why you don't just send in the page number and the total pages..

anyways.. i figured out that the next doesn't even change.. 2 seems to be it's "default" for some reason..

Code:
($link_count > $mh) and ($next = $linkdb->toolbar());

are there suppose to be variables in there like

Code:
($link_count > $mh) and ($next = $linkdb->toolbar($nh, $mh));

jerry
Quote Reply
Re: 1.1b2: search.cgi bug In reply to
something else..
in search.cgi

Code:
if ($in->param('query')) {
&search ($in, $dynamic);
}

and

Code:
$query or &site_html_search_failure ( { error => "No search term entered.", %in }, $dynamic) and return;

just look at the position of the second code and you will understand what i am talking about Smile it doesn't make any sense to go there.. although it'd still be nice to have a no search term entered page.. perhaps by naming the search button to search and instead of saying if ($in->param('query')) { to if ($in->param('search')) {

jerry
Quote Reply
Re: 1.1b2: search.cgi bug In reply to
Did you give anything 'weight' in the Links Tables?? If not, nothing is being indexed.
Quote Reply
Re: 1.1b2: search.cgi bug In reply to
ok.. now search-ni.cgi works.. but search.cgi is complaining about some table called Links_Word_Index not existing..

jerry
Quote Reply
Re: 1.1b2: search.cgi bug In reply to
and also.. when there are no categories returned.. it still gives -2 categories..

guessing the same for links..

jerry
Quote Reply
Re: 1.1b2: search.cgi bug In reply to
Make sure the 4 tables I mentioned yesterday are created....

The second message has what to add to the SQL.mysql file to have them created.

I got rid of all those errors that way.
Quote Reply
Re: 1.1b2: search.cgi bug In reply to
 
Quote:
i haven't determined what it is yet, but no matter what i search for i get no matching links.. and on search-ni.cgi i always get -2 categories and -2 links

Check your Links_Word_Table and Links_Scores_Table. Do you have any values in there? Try running nph-index.cgi and do your search again.

As for receiving -2's, this means the query is bad. You should try printing out $DBI::errstr after the query is done to see what's going wrong.

Quote:
it starts with 2.. i think it's a matter of the $nh..

Thanks! It's actually a bug in sub toolbar in DBSQL.pm. Change:

my ($nh, $maxhits) = @_ | | return $self->{next_url};

to:

my ($nh, $maxhits) = @_ or return $self->{next_url};

Quote:
by naming the search button to search and instead of saying

Good point.

Cheers,

Alex