You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Tellier Benoit (JIRA)" <ji...@apache.org> on 2015/10/31 12:21:27 UTC

[jira] [Created] (MAILBOX-258) MailboxRenamed event not handled by ListeningMessageSearchIndex

Tellier Benoit created MAILBOX-258:
--------------------------------------

             Summary: MailboxRenamed event not handled by ListeningMessageSearchIndex
                 Key: MAILBOX-258
                 URL: https://issues.apache.org/jira/browse/MAILBOX-258
             Project: James Mailbox
          Issue Type: Bug
          Components: lucene
    Affects Versions: 0.6
            Reporter: Tellier Benoit
             Fix For: 0.6


This means that renaming a mailbox is not handled by the search index.

ListeningMessageSearch should listen to MailboxRenamed events, and handle an update for all concerned documents concerning their mailbox.

Concerning elasticsearch, it might be complicated to implement as their is not yet an UpdateByQuery API :-(

An explicit call to the ReIndexer will do the trick... Do you consider this acceptable ? Any better idea ? 

Note : we can't iterate on message range (2^64 values for MessageRange::all() ) to update documents one by one....



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org