|
|
11-23-2005, 08:21 PM
|
Junior Member
|
|
Join Date: Oct 2005
Posts: 7
|
|
Bars not working
|
11-23-2005, 11:10 PM
|
Administrator
|
|
Join Date: Jul 2005
Posts: 46
|
|
Hi, the tdSearch queries select relevance greater than zero, but the number zero in the image name means either a) that relevance greater than zero is no longer part of the queries, b) that relevance is passed as zero to the bar function, or c) that the following code is returning zero:
Code:
sprintf("%.2f",$data["relevance"]);
Also, if white on white is a problem, you can set the max and min colors for the bars in the config file.
|
11-24-2005, 03:04 AM
|
Junior Member
|
|
Join Date: Oct 2005
Posts: 7
|
|
Ok, but now what?
So, I changed the color from white and the bars now show up. Thanks. But the relevance is still not working. All the bars are pic0, and no numerical values for relevance are showing up. I think the query is selecting the proper records from the database, so something is working. What do you think is happening? Doesn't seem like there's anything I could have done with the configure file to cause the relevance to not work. Have other people had this issue? Is it a bug? Is there some special version of MySQL or PHP that I need or some special settings? Thanks!
|
11-24-2005, 07:24 AM
|
Administrator
|
|
Join Date: Jul 2005
Posts: 46
|
|
Hi, sorry, I haven't heard of this issue before, so I'm not yet sure what is going on. What setlocale, common_word, and word_weight did you set in the config file?
|
11-26-2005, 11:13 PM
|
Junior Member
|
|
Join Date: Oct 2005
Posts: 7
|
|
All my settings are below. Important: there are only a few entries in the database now. Does that matter?
$show_bar_graphic = "on";
$max_color = "#FA9C00";
$min_color = "#FFE6BB";
$common_word = "51";
$word_weight = "0.2";
$today = gmdate("j M Y, g:i:s")." GMT";
$chars_to_bld = "2";
$chars_to_ign = "2";
|
11-27-2005, 03:11 AM
|
Administrator
|
|
Join Date: Jul 2005
Posts: 46
|
|
Okay, thanks, found the problem. Either a) apply the attached patch or b) download the tdSearch archive again, FTPing just the tdSearch.php file, overwriting the old tdSearch.php file.
|
11-27-2005, 08:46 PM
|
Junior Member
|
|
Join Date: Oct 2005
Posts: 7
|
|
Perfect. Thanks for the quick action. Works fine now...
|
Thread Tools |
Search this Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 09:18 AM.
|