![]() |
Slight problem with results.
Hi Charter & Everyone,
I am having a problem with the results that are displayed, when a search is carried out some results come back blank: I have checked to see if any files in the DB are of zero file length, and have run the PHP Admin cleaner a few times but I can't seem to get rid of these blank results coming through. Any ideas my friend? 1. [100.00 %] limit to 2. [95.26 %] limit to 3. [43.03 %] limit to 4. [40.82 %] limit to 5. [40.82 %] limit to |
Does this happen when you do an exact search?
|
Hi Charter, yes even an exact search produces a few 100% results with no text or domain details in the results.
And or searches produce even more of those empty results.. |
Something got out of sync. Maybe info was deleted from the database directly instead of from the admin panel?
Try the following. First create the following table in the same database as the PhpDig tables: Code:
CREATE TABLE blanks ( Code:
$query = "SELECT sites.site_url, sites.port, spider.path,spider.file,spider.first_words,sites.site_id,spider.spider_id,spider.last_modified,spider.md5 " Code:
if (empty($content['site_url'])) { |
Huston we have a problem?
Hi Charter, I have made the table in the database, copied the code over to the searchfunction.php file
When I do a few searches the results still show blank results but the table in the database would appear to be empty when I go there and look using phpmyadmin So I am not really sure what is happening the blanks table remains empty? I would appreciate your help if possible with this. Heaps of regards Dave A |
Okay, now try the following...
First create the following table in the same database as the PhpDig tables: Code:
CREATE TABLE blanks2 ( Code:
$timer->stop('reorder results'); Code:
if (is_array($final_result) && count($final_result) > 0) { Also note that this may seem like it removes the blanks, but it's a temporary thing. I'll need to see if any rows get inserted into blanks2 to put things back in sync. |
Answers to post
Hi Charter,
I have added the blank2 table and copied the code as you have mentioned into the searchfunction.php file The results appear to be the same, after about thirty searches both the original blank table and the blank2 table are empty when I use phpmyadmin to have a look at them. Some of the results are still coming up with blanks that are empty and I didn't notice any change in search speeds. Perhaps this can help your diagnostics my friend?? All the best Dave A downunder |
Hmm, try the following...
First create the following table in the same database as the PhpDig tables: Code:
CREATE TABLE blanks3 ( Code:
$query = "SELECT sites.site_url, sites.port, spider.path,spider.file,spider.first_words,sites.site_id,spider.spider_id,spider.last_modified,spider.md5 " Code:
$blank = addslashes(serialize($content)); |
Hi Charter I have just done that and when I completed the search, the blank3 table was empty.
|
Email me FTP access to the PhpDig directory, if you will.
|
Hi Charter
just fired the access and password over to you. |
Okay, the issue is that (a) the site_id column of the sites table contains IDs that are not in the site_id column of the spider table, (b) the site_id column of the spider table contains IDs that are not in the site_id column of the sites table, or (c) a combination of (a) and (b) so what I did was change the following query:
Code:
$query = "SELECT spider.spider_id,sum(weight) as weight, spider.site_id Code:
$query = "SELECT spider.spider_id,sum(weight) as weight, spider.site_id |
Hi Charter,
thanks for your advice and help with the problem, it appears to be okay now. I went into the phpmyadmin and check the sites table which showed an error because of zero length in site. ID part of the table, so I then tried to repair the table which failed to work it out. In the end I deleted all sit id's with a zero length and the sites table cleaned itself straight away. So now it's up and running sweet as. Thanks for your great help and assistance with this, I know it's not a given that you will sort out users problems but in this case I would really like say thanks! The whole engine is working, I can now clean the index brilliant help. Thanks for the support.. |
Glad it is now working. :) BTW, what do you get from the following query?
Code:
SELECT count(*),max(site_id) FROM sites; Code:
site_id mediumint(9) NOT NULL auto_increment Hmm... |
All times are GMT -8. The time now is 11:36 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.