[rt-users] help with ModifyQuery callback
Izz.Abdullah at hibbett.com
Fri Oct 7 16:08:03 EDT 2011
Anyone? The below code breaks the simple query altogether. I haven't seen anything from google.
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Izz Abdullah
Sent: Friday, October 07, 2011 8:36 AM
To: rt-users at lists.bestpractical.com
Subject: [rt-users] help with ModifyQuery callback
I would appreciate some assistance in forcing FTS in simple searches...so I have written the following, which completely broke the simple search, but you get the idea of what I am trying to do (value of: /opt/rt4/local/html/Callbacks/hibbett/Search/Simple.html/ModifyQuery):
my $val = $$query;
$val = "fulltext:$val";
$$query = $val;
$query => undef
I imagine I could skip a step and have a one-liner: $$query = "fulltext:$$query"; but nonetheless, it doesn't like me modifying the query like this. Is the query, at this point, sql, or is it still the text inserted into the search box?
I have changed owner on the tree structure to www-data:www-data, and I have cleared the mason cache. (clearly since the simple search will not return any results now) :)
I will continue to work on this, but would appreciate any assistance.
Thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rt-users