TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-19-2008, 02:20 PM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default Full Text Searches with Query Expansion

First off, this doesn't work. With or without a large collection of rows in a table. And everything is valid, Engine is MyISAM, the AGAINST argument is a string literal, my FULL Text column is TEXT and that is valid.

And by the way, I'm using PDO MySQL Driver for the querying procedure in case that affects the query in anyway.


And Yes I've tried IN BOOLEAN MODE which I don't seem to need at all, and even without Query Expansion.

Even if I add a keyword that's short enough to make the query work, it doesn't.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 12-19-2008, 05:51 PM   #2 (permalink)
The Addict
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
CoryMathews is on a distinguished road
Default

If you remove the with Query Expansion so its just a match against does it still work? Also are all the columns you are searching aganist within the same full text index?
CoryMathews is offline  
Reply With Quote
Old 12-19-2008, 08:31 PM   #3 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by CoryMathews View Post
If you remove the with Query Expansion so its just a match against does it still work? Also are all the columns you are searching aganist within the same full text index?
It isn't working... Otherwise I wouldn't have posted this, it won't return any rows, with or without query expansion it still doesn' return the rows, and yes they are.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 12-19-2008, 08:34 PM   #4 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

Give us some code (PHP & SQL), for us to re-create the problem, and we can move along from there. Without that, we've no idea what mistakes you might be making and "it doesn't work" is never enough to go on.
Salathe is offline  
Reply With Quote
Old 12-19-2008, 08:39 PM   #5 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Salathe View Post
Give us some code (PHP & SQL), for us to re-create the problem, and we can move along from there. Without that, we've no idea what mistakes you might be making and "it doesn't work" is never enough to go on.
The SQL won't help you. since it's just an average sql query for full text query expansion.. but w/e
sql Code:
SELECT * FROM `logs`
    WHERE MATCH (logmsg)
    AGAINST ( '".$o_Filter->slashes(urldecode($sq))."' WITH QUERY EXPANSION );
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF Full text search using PHP code_junkie Advanced PHP Programming 1 09-18-2008 07:59 PM
PDF Creation - Help! Sam Granger General 7 10-31-2007 11:32 AM


All times are GMT. The time now is 01:53 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design