bug with search
bug with search
hi guys,
when i write something in the search-form, there is a correct result, but a few lins under the articel it shows me:
<pre>SELECT f.* FROM serendipity_faqs AS f WHERE MATCH(question,answer) AGAINST('ocean') GROUP BY id ORDER BY changedate DESC</pre> / Kann keinen FULLTEXT-Index finden, der der Spaltenliste entspricht
0 FAQs gefunden:
<pre>SELECT s.*, a.realname FROM serendipity_staticpages AS s LEFT OUTER JOIN serendipity_authors AS a ON a.authorid = s.authorid WHERE MATCH(headline,content) AGAINST('ocean') AND s.publishstatus = 1 AND s.pass = '' GROUP BY id ORDER BY timestamp DESC</pre> / Kann keinen FULLTEXT-Index finden, der der Spaltenliste entspricht
Weitere 0 Seiten gefunden:
is that corect?
cu
when i write something in the search-form, there is a correct result, but a few lins under the articel it shows me:
<pre>SELECT f.* FROM serendipity_faqs AS f WHERE MATCH(question,answer) AGAINST('ocean') GROUP BY id ORDER BY changedate DESC</pre> / Kann keinen FULLTEXT-Index finden, der der Spaltenliste entspricht
0 FAQs gefunden:
<pre>SELECT s.*, a.realname FROM serendipity_staticpages AS s LEFT OUTER JOIN serendipity_authors AS a ON a.authorid = s.authorid WHERE MATCH(headline,content) AGAINST('ocean') AND s.publishstatus = 1 AND s.pass = '' GROUP BY id ORDER BY timestamp DESC</pre> / Kann keinen FULLTEXT-Index finden, der der Spaltenliste entspricht
Weitere 0 Seiten gefunden:
is that corect?
cu
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: bug with search
Hi!
Seems like your database table serendipity_faqs misses the fulltext index. Try to execute this SQL via phpMyAdmin:
Regards,
Garvin
Seems like your database table serendipity_faqs misses the fulltext index. Try to execute this SQL via phpMyAdmin:
Code: Select all
CREATE FULLTEXT INDEX faqentry_idx on serendipity_faqs (question, answer);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/
# 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/
sprechen ja beide deutsch, oder? 
also hab mich bei phpMyAdmin eingeloggt und dann eingegeben, aber er sagte mir ich hätte keine rechte um das zu tun!
soll ein feld "faqentry_idx" in der tabelle serendipity_faqs erstellt werden: diese soll TEXT formatiert und einen INDEX und dann auch VollText sein, richtig?
da er den mysql code nicht nimmt hab ich es mit hand gemacht, aber er meldet mir bei der suche immer noch das gleiche!
1. richtig verstanden?
lg oskar
also hab mich bei phpMyAdmin eingeloggt und dann eingegeben, aber er sagte mir ich hätte keine rechte um das zu tun!
soll ein feld "faqentry_idx" in der tabelle serendipity_faqs erstellt werden: diese soll TEXT formatiert und einen INDEX und dann auch VollText sein, richtig?
da er den mysql code nicht nimmt hab ich es mit hand gemacht, aber er meldet mir bei der suche immer noch das gleiche!
1. richtig verstanden?
lg oskar
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
You posted this in an english forum, so now we need to stick with that.
If your phpMyAdmin tells you you have no INDEX privileges, you must tell your Provider to give those privileges to you. Not having INDEX privileges is a mistake of your provider, those privileges are very important for MySQL.
Best regards,
Garvin
You posted this in an english forum, so now we need to stick with that.
If your phpMyAdmin tells you you have no INDEX privileges, you must tell your Provider to give those privileges to you. Not having INDEX privileges is a mistake of your provider, those privileges are very important for MySQL.
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/
# 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/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
The normal search uses a different databasetable, maybe for that one the fultext index was (whatever the reasons) created...?
Regards,
Garvin
The normal search uses a different databasetable, maybe for that one the fultext index was (whatever the reasons) created...?
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/
# 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/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
serendipity_entries and serendipity_faqs.
Regards,
Garvin
serendipity_entries and serendipity_faqs.
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/
# 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/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
What do you mean with that posting?
The only fulltext index on serendipity_entries should be one on the fields (title,body,extended). The only fulltext index on serendipity_faqs should be one on the columns (question, answer).
Regards,
Garvin
What do you mean with that posting?
The only fulltext index on serendipity_entries should be one on the fields (title,body,extended). The only fulltext index on serendipity_faqs should be one on the columns (question, answer).
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/
# 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/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Your screenshots only lists the COLUMNS, not the INDICES!
You should have a look at a different section that contains the indexes, it should be below the colu,mn listing.
Regards,
Garvin
Your screenshots only lists the COLUMNS, not the INDICES!
You should have a look at a different section that contains the indexes, it should be below the colu,mn listing.
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/
# 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/
ahhhhh, ok i could change it manual:
http://p11028.prtg1.pretago.de/blog/?se ... 5D=mercury
but there is something from staticages, too!
have a look please!
i think its the same solution, but i need the right code to change it please
lg oskar
http://p11028.prtg1.pretago.de/blog/?se ... 5D=mercury
but there is something from staticages, too!
have a look please!
i think its the same solution, but i need the right code to change it please
lg oskar
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
For staticpages, this index:
HTH,
Garvin
For staticpages, this index:
Code: Select all
CREATE FULLTEXT INDEX huselbusel_idx on serendipity_staticpages
(headline, content);
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/
# 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/

