On Mon, Nov 3, 2008 at 14:53, Rich McDonough <span dir="ltr"><<a href="mailto:rich.mcdonough@worldgaming.com">rich.mcdonough@worldgaming.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm fairly new to RT so please forgive me if this is a terribly<br>
obvious question. Our RT installation is only showing results for full<br>
text searches from open, new and stalled tickets, but we would like<br>
this to change to searching our entire ticket history by default.<br>
Here's the actual SQL statement that our database logs:<br>
<br>
LOG:  statement: SELECT COUNT(DISTINCT <a href="http://main.id" target="_blank">main.id</a>) FROM Tickets main JOIN<br>
Transactions Transactions_1  ON ( Transactions_1.ObjectId = <a href="http://main.id" target="_blank">main.id</a> )<br>
JOIN Attachments Attachments_2  ON ( Attachments_2.TransactionId =<br>
Transactions_1.id )  WHERE (Transactions_1.ObjectType = 'RT::Ticket')<br>
AND (main.Status != 'deleted') AND ( (  ( Attachments_2.Content ILIKE<br>
'%test%' )  )  AND  ( main.Status = 'new' OR main.Status = 'open' OR<br>
main.Status = 'stalled' ) ) AND (main.Type = 'ticket') AND<br>
(main.EffectiveId = <a href="http://main.id" target="_blank">main.id</a>)<br>
<br>
I have to assume that this is not too difficult to achieve, but I have<br>
yet to dig up where this query is being generated from. We're running<br>
version 3.8.1 on Postgres <a href="http://8.3.4." target="_blank">8.3.4.</a><br>
<br>
Thanks for any assistance that anyone can offer! Thus far I've been<br>
very impressed with RT.<br>
<br>
</blockquote></div>This isn't a fulltext problem, an examination of the list archives will show<br>that search behavior has changed to default to open tickets in 3.8<br>See <a href="http://wiki.bestpractical.com/view/SimpleSearchExcludeResolved">http://wiki.bestpractical.com/view/SimpleSearchExcludeResolved</a><br>
for a patch to allow you to readily search on closed tickets. Alternatively,<br>use the Edit Search query builder.<br clear="all"><br>-- <br>Cambridge Energy Alliance: Save money & the planet<br>