[Rt-commit] rt branch, 4.0/restore-DontSearchFileAttachments, created. rt-4.0.10-93-ge483b9d

Ruslan Zakirov ruz at bestpractical.com
Fri Mar 15 09:37:58 EDT 2013


The branch, 4.0/restore-DontSearchFileAttachments has been created
        at  e483b9d112afca6faa007dd100aa4908926c2f5a (commit)

- Log -----------------------------------------------------------------
commit e483b9d112afca6faa007dd100aa4908926c2f5a
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Fri Mar 15 17:32:40 2013 +0400

    return back documentation of DontSearchFileAttachments option
    
    It was deleted in d789bd3986a4ad63a71bd2450c9aad0c7763a7de (rt-4.0.1rc1)
    with usage in sbin/rt-setup-fulltext-index, but it is primary use
    case is in TicketSQL to filter out named attachments while searching
    content.
    
    Mentioned commit replaces use of the option with command line argument.
    It was the right call to separate FTS indexing from this option, so
    we don't restore usage in the script.

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index 161a166..a75c81e 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -1222,6 +1222,18 @@ Set(%FullTextSearch,
     Indexed => 0,
 );
 
+=item C<$DontSearchFileAttachments>
+
+If C<$DontSearchFileAttachments> is set to 1, then uploaded files
+(attachments with file names) are not searched during content
+search.
+
+Note that if you use indexed FTS then named attachments are still
+indexed by default regardless of this option.
+
+=cut
+
+Set($DontSearchFileAttachments, undef);
 
 =item C<$OnlySearchActiveTicketsInSimpleSearch>
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list