Re: Eliminate the short search term
| From: | Bastien | Date: | Tue, 05 Jul 2011 13:06:53 +0000 |
| Subject: | Re: Eliminate the short search term | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-47911@lists.php.net to get a copy of this message | ||
On 2011-07-05, at 8:30 AM, Guru™ <nagendra802000@gmail.com> wrote:
> Hi All,
>
> I have a search engine which is working fine. However let say if a user search for books or
> book its giving results having book or books as keywords. However when a user types "books on
> computers" its searching for whole 3 words like "books" "on"
> "computers". I want to eliminate the search terms like "on, at, in etc" and just
> search for books and computers. Please help me.
>
> --
> Best,
> Guru™
>
What i did was add an array of terms not to search on and then use that array to remove any terms
that I don't want.
Thanks
Bastien Koert