[rt-users] Simple Search functionality

Jeff Lucas jlucas at eagleinvsys.com
Wed May 27 15:27:31 EDT 2009


I've tried and tried and tried and I cannot get it to work.

Is "stuff" in the following path correct...

/apps/rt-3.8.2/local/html/Callbacks/stuff/Search/Simple.html/ModifyQuery


After restarting Apache...

# cd /apps/rt-3.8.2
# find . -name \*imple\*
./share/html/NoAuth/RichText/FCKeditor/editor/plugins/simplecommands
./share/html/Elements/SimpleSearch
./share/html/Search/Simple.html
./local/html/Callbacks/stuff/Search/Simple.html

Thanks.


-----Original Message-----
From: Jerrad Pierce [mailto:jpierce at cambridgeenergyalliance.org] 
Sent: Wednesday, May 27, 2009 3:13 PM
To: Jeff Lucas
Cc: Emmanuel Lacour; rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Simple Search functionality

On Wed, May 27, 2009 at 13:48, Jeff Lucas <jlucas at eagleinvsys.com> wrote:
> I am running 3.8.2 which is installed under /apps/rt-3.8.2.
>
> According to
> http://wiki.bestpractical.com/view/SimpleSearchIncludeResolved, I
> created...
>
> # cat
> /apps/rt-3.8.2/local/html/Callbacks/stuff/Search/Simple.html/ModifyQuery
>
> <%init>
> #active is the default: open new stalled
> $$query =~ s/\bany\b/new open resolved stalled rejected deleted/i;
> #$$query =~ s/\bclosed\b/resolved rejected deleted/i;
> </%init>
>
> <%args>
> $query => undef
> </%args>
>
>
> Tested it but it did not work.  Restarted httpd and still not working.
Are you sure it didn't work? What this customization does is add the
keyword any.
So that searching for "quux" finds active tickets LIKE quux and "quux any" finds
any ticket LIKE quux, regardless of status. This is a more powerful and targeted
solution than reverting to an "always return all states," but you can do that by
appending the list of desired states to $$query, rather than doing the replace.



More information about the rt-users mailing list