Id - public class SimpleMessageSearchIndex<Id> extends Object implements MessageSearchIndex<Id>
MessageSearchIndex which just fetch Message's from the MessageMapper and use MessageSearcher
to match them against the SearchQuery.
This works with every implementation but is SLOW.| Constructor and Description |
|---|
SimpleMessageSearchIndex(MessageMapperFactory<Id> factory) |
| Modifier and Type | Method and Description |
|---|---|
Iterator<Long> |
search(MailboxSession session,
Mailbox<Id> mailbox,
SearchQuery query)
Return all uids of the previous indexed
Mailbox's which match the SearchQuery |
public SimpleMessageSearchIndex(MessageMapperFactory<Id> factory)
public Iterator<Long> search(MailboxSession session, Mailbox<Id> mailbox, SearchQuery query) throws MailboxException
MessageSearchIndexMailbox's which match the SearchQuerysearch in interface MessageSearchIndex<Id>MailboxExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.