Changing Search Query

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Jhuff
Posts: 10
Joined: Thu Oct 02, 2014 5:05 pm

Changing Search Query

Post by Jhuff »

Hey Everyone,

So I'm having a bit of trouble with the search functionality.

I understand this is a typical Boolean Full-Text Search as described in this article. http://dev.mysql.com/doc/refman/5.1/en/ ... olean.html

But my company would like to be able to search the full string.

So for an example. Right now we have 20 faqs. Each contain the word TEST in them. But only one of them has the phrase TEST ARTICLE.

If I search for test article. It pulls us all articles with "test", and all articles with "Article".

So what I currently have to do, if I want to search for that one. Is search for +test +article so it finds the one faq with both test and article in it.

This is all fine, and how its programmed. But I was wondering if there's any tweaking on my end that I can do, to auto add the +'s to each word. So I would enter test article and it would auto convert it to +test +article

Wasn't sure if that's possible, but if it is that would be a real lifesaver! If you need any more info, or screenshots let me know!

Thanks,
JHuff
Thorsten
Posts: 15739
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Changing Search Query

Post by Thorsten »

Hi,

you should be able to add the plus here: https://github.com/thorsten/phpMyFAQ/bl ... li.php#L56

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply