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
MessageSearchIndex
Mailbox
's which match the SearchQuery
search
in interface MessageSearchIndex<Id>
MailboxException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.