Forgot password? | Forgot username? | Register

php "and" "or" searching

php "and" "or" searching

I'm working on a php web interface to EMu...it looks to me like there is built in funtionality to boolean searches and special character searches in EMu, but i can't find any info on how to make them work via the php web interface.

For instance, i'd like to be able to do a keyword search such as "motorcycle" or "trip" to find all records that have either of those words.

I'm very new to this project...so maybe i'm missing something.

Thanks!
jason

Edited by: - 01-Jan-70 09:00:00

Administrator has disabled public posting. Please login or register in order to proceed.

Re: php "and" "or" searching

Hi Jason,

Are you working with the PHP 5 classes for EmuWeb provided by KE?
Let me know as I've done a fair bit of work with them and can give you some pointers. Attached is some doco on the PHP 5 classes I got a while back which might help. Possibly contact KE as it may have been updated seen I've received it.

Regards,
Simon

Attachment: PHP_5_Query_and_Media_classes.pdf

Administrator has disabled public posting. Please login or register in order to proceed.

Re: php "and" "or" searching

Thanks, Simon...that was just what i was looking for.

Administrator has disabled public posting. Please login or register in order to proceed.

Re: php "and" "or" searching

ok...so after typing a long post..only to have it be sucked into the ether by a login timeout...here is the short version of my post...

this is all in relation to a single keyword search box. so...if a user types in "motorcycle and trip and world not kayak" this string can easily by exploded into an array by a seperater of " and " or " or "...or " not ". Which i've done, but now i'm thinking it might be smarter to convert the string into something where the " and " and " or " and " not " have been replaced by special characters...then explode and loop over this string ("motorcycle,trip,world!kayak") and come up with your texql params:
$qry->Term("AdmWebMetadata", $xxx[$i]);
and
$qry->TexqlTerm("AdmWebMetadata not contains ".$aryNotValues[$i]);

is this the kind of thing you could post a snippet for. The Ands, Ors, and Nots are pretty easy on their own...but when you start thinking about all the combinations of things...it gets a little narly. so if you have some tips or code that could handle what i'm trying to do..that would be much appreciated. but in the meantime, i'll just keep plugging.

thanks
jason

Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests and 0 other users also viewing this topic

Board Info

Board Stats
 
Total Topics:
603
Total Polls:
0
Total Posts:
1363
User Info
 
Total Users:
866
Newest User:
Katie Robson
Members Online:
3
Guests Online:
291