How to search for multiple keywords

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
tomeisaman
Posts: 1
Joined: Fri Nov 07, 2014 4:54 pm

How to search for multiple keywords

Post by tomeisaman »

I am using phpMyFAQ 2.8.15.

I want to search for an FAQ that has the following 3 keywords. GQAM, Auto, Negotiate. Reading through the other FAQs, I see that the search mechanism looks like it should be: "+GQAM +Auto +Negotiate". That will find what I am looking for, but it also finds everything that has any of those 3 keywords. It does not matter if I use a + or leave it off. If I put a - in front of any of those keywords, then it will take away any FAQ that has that keyword. So -GQAM won't show anything with GQAM.

How can I do a search that will only return items that have only those 3 keywords.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: How to search for multiple keywords

Post by Thorsten »

Hi,

according the MySQL full text search documentation you should add double quotes around the words: http://dev.mysql.com/doc/refman/5.5/en/ ... olean.html

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Begel
Posts: 3
Joined: Wed Nov 12, 2014 8:12 pm

Re: How to search for multiple keywords

Post by Begel »

THanks for help Thorsten !
Post Reply