[rt-users] help with ModifyQuery callback
Izz Abdullah
Izz.Abdullah at hibbett.com
Fri Oct 7 09:36:05 EDT 2011
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/460f387c/attachment.htm>
More information about the rt-users
mailing list