[Rt-commit] rt branch, 4.4/updated-sphinx-query, created. rt-4.4.2-27-g75a8abe

Brian Duggan brian at bestpractical.com
Tue Aug 8 15:32:02 EDT 2017


The branch, 4.4/updated-sphinx-query has been created
        at  75a8abe80281583e5ffcdd433dba0f961f4da755 (commit)

- Log -----------------------------------------------------------------
commit 75a8abe80281583e5ffcdd433dba0f961f4da755
Author: Brian C. Duggan <brian at bestpractical.com>
Date:   Tue Aug 8 15:27:34 2017 -0400

    Update Sphinx indexer query to match native indexers.
    
    The MySQL and PostgreSQL indexing queries for full-text search have
    been updated to include deleted tickets, HTML content, and exclude
    content in email transactions. But the Sphinx query that
    rt-setup-fulltext-index prints to stdout wasn't similarly updated. The
    user must then install the query from rt-setup-fulltext-index. This
    change updates the Sphinx query to match the functionality of the
    native indexer queries.

diff --git a/sbin/rt-setup-fulltext-index.in b/sbin/rt-setup-fulltext-index.in
index 616cf40..12aba1f 100644
--- a/sbin/rt-setup-fulltext-index.in
+++ b/sbin/rt-setup-fulltext-index.in
@@ -265,7 +265,7 @@ source rt {
         SELECT a.id, a.content FROM Attachments a \\
         JOIN Transactions txn ON a.TransactionId = txn.id AND txn.ObjectType = 'RT::Ticket' \\
         JOIN Tickets t ON txn.ObjectId = t.id \\
-        WHERE a.ContentType = 'text/plain' AND t.Status != 'deleted'
+        WHERE txn.Type != 'EmailRecord' AND txn.Type != 'CommentEmailRecord' AND (a.ContentType = 'text/plain' OR a.ContentType = 'text/html')
 
     sql_query_info  = SELECT * FROM Attachments WHERE id=\$id
 }

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


More information about the rt-commit mailing list