Quicksearch Yields Long SQL Error Message

Found a bug? Tell us!!
Post Reply
roamingk
Regular
Posts: 9
Joined: Sat Oct 07, 2006 2:17 pm

Quicksearch Yields Long SQL Error Message

Post by roamingk »

Hi,

When I try and use Quicksearch I get the following error message:


Quicksearch
The search function did not work as expected. Notice for the administrator of this blog: This may happen because of missing index keys in your database. On MySQL systems your database user account needs to be privileged to execute this query:
CREATE FULLTEXT INDEX entry_idx on serendipity_entries (title,body,extended)The specific error returned by the database was:
SELECT
e.id,
e.authorid,
a.realname AS author,
a.email,
e.timestamp,
e.comments,
e.title,
e.body,
e.extended,
e.trackbacks,
e.exflag

FROM
serendipity_entries e
LEFT JOIN serendipity_authors a
ON e.authorid = a.authorid
LEFT JOIN serendipity_entrycat ec
ON e.id = ec.entryid
LEFT JOIN serendipity_category c
ON ec.categoryid = c.categoryid LEFT JOIN serendipity_authorgroups AS acl_a
ON acl_a.authorid = 1
LEFT JOIN serendipity_access AS acl_acc
ON ( acl_acc.artifact_mode = 'read'
AND acl_acc.artifact_type = 'category'
AND acl_acc.artifact_id = c.categoryid
)
WHERE
(MATCH(title,body,extended) AGAINST('sitges'))
AND isdraft = 'false' AND timestamp <= 1162072363 AND (
c.categoryid IS NULL
OR ( acl_acc.groupid = acl_a.groupid OR acl_acc.groupid = 0)
OR ( acl_acc.artifact_id IS NULL

)
)
GROUP BY e.id
ORDER BY timestamp DESC
LIMIT 5 / Can't find FULLTEXT index matching the column list
Anyone know what might be wrong?

Thanks

Keith
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Quicksearch Yields Long SQL Error Message

Post by garvinhicking »

Hi!

Did you read the beginning of that error message? IT actually tells you what is wrong and you need to do. :-)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
roamingk
Regular
Posts: 9
Joined: Sat Oct 07, 2006 2:17 pm

Thanks..... one more step?

Post by roamingk »

Thanks... stupid me...

I entered the query but I apparently don't have permission to run the query. I don't know how to give myself permissions. running, MySQL 3.23.58 using phpMyAdmin....
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Thanks..... one more step?

Post by garvinhicking »

Hi!

If you don't have permissions, sadly you can only turn to your provider and ask them.

However, MySQL Fulltextsearch in MySQL 3.x (which is 6 years old!) does not work very fast and well, so you should tlel your provider to upgrade to a more recent MySQL version, and while he's at it, give you INDEX privileges so you can create the required indices. This also speeds up a lot on your blog.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply