[rt-users] help with ModifyQuery callback

Izz Abdullah 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):
<%init>
my $val = $$query;
$val = "fulltext:$val";
$$query = $val;
</%init>

<%args>
$query => undef
</%args>


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,
Izz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20111007/1c77cb4b/attachment.htm>


More information about the rt-users mailing list