PDA

View Full Version : AND & OR plus Exact Phrase Searching


Charter
12-27-2003, 04:18 PM
Hi. The attached file has "and operator - exact words - or operator" searching options and uses "begin with" for the "and - or" options. It is currently in beta and is only available for testing with PhpDig version 1.6.5.

The attached file is used in the online demo (http://www.phpdig.net/demo/search.php?query_string=apache+server) but is not yet included in a full release. If you want to try it, make a backup of your current search_function.php file, download the attached file, unzip it, and replace search_function.php with the unzipped file.

Anyway, let me know how it goes and what you think. Thanks.

EDIT: File removed. Download PhpDig version 1.8.0+ instead.

Ellsmasher
01-11-2004, 12:27 PM
If I enter part of a word in my search query, the appropriate matches are returned but the partial word is not highlighted. It does highlight in the previous search_function.php for 1.6.5. AND / OR Querying does work though !!

I really enjoy this product, I am attempting to convince my employer to integrate it into our intranet/IT infrastructure as we have several 1,000's of Word Docs/ PDF docs that we would like to have indexed. I look forward to sending feedback on scaling, although I think that will ultimately be network config/mysql driven.

-Bryan

Charter
01-11-2004, 12:57 PM
Hi. The previous search_function.php for 1.6.5 allowed LIKE '%word%' queries for matching on any part of the word. In the new search_function.php for 1.6.5 this was changed to LIKE 'word%' queries to allow begin with matching. This change was made because wild card matching on both ends can be pretty slow. ;)