search string / query format
| From: | Ed Lazor | Date: | Sat, 10 Jul 2004 01:15:21 +0000 |
| Subject: | search string / query format | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190120@lists.php.net to get a copy of this message | ||
I'm going to create a search page that accepts input similar to places like
Yahoo and Google. Example input would be:
Keyword AND keyword2
Keyword -keyword2 +keyword3
"keyword keyword2" -keyword3
Rather than reinvent things though, I'm wondering if anyone here happens to
have a script or function that will handle that type of input. It would be
great if someone already has a function that accepts the initial query, a
table to query against, and a list of fields to query against, and returns
the appropirate SQL statement. Also, I've heard that MySQL's indexing can
support some of this, but I'm not sure how much.
Thanks in advance for any pointers or info you might have on this.
-Ed