How does the search feature work?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
albatroz
Posts: 10
Joined: Mon Jul 14, 2003 2:41 am
Location: Lima
Contact:

How does the search feature work?

Post by albatroz »

I am having a problem with the search feature.

It seems it is not working fine, because I don't receive any record
when I start a search. What fields does the SEARCH look into?
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

just take a look in our documentation:
Fulltext-search will only work if there are some entries in the database (5 or more). The term you are looking for should also not be in more than 50% of all your entries, or it will automatically be excluded from search. This is not a bug, but rather a feature of MySQL.
You only have 2 entries, so the fulltext-search isn't working yet.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
filemaniac
Posts: 1
Joined: Wed Jul 30, 2003 12:17 pm

Post by filemaniac »

Full-text search can be more than a little annoying, especially when you intend some entries to be somewhat alike or about the same topic. Is there a way to force it to just look at keywords?
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,
filemaniac wrote:Is there a way to force it to just look at keywords?
yes, but you have to change something in the MySQL table:

Code: Select all

ALTER TABLE <prefix>faqdata DROP INDEX keywords
ALTER TABLE <prefix>faqdata ADD FULLTEXT (keywords)
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply