idx.reIndexItem(mbox, cur.id, cur.type);
idx.reIndexItem(mbox, cur.id, cur.type, false);
        void doIndexRepair() throws IOException         {            // delete first -- that way if there were any re-indexes along the way we know we're OK            if (toDelete.size() > 0) {                mLog.info("There are "+toDelete.size()+" items to delete");                int ids[] = new int[toDelete.size()];                for (int i = 0; i < toDelete.size(); i++) {                    ids[i] = ((Integer)(toDelete.get(i))).intValue();                }                idx.deleteDocuments(ids);            }            // if there any messages left in this list, then they are missing from the index and             // we should try to reindex them            if (msgsInMailbox.size() > 0)            {                mLog.info("There are "+msgsInMailbox.size() + " msgs to be re-indexed");                for (Iterator iter = msgsInMailbox.iterator(); iter.hasNext();) {                    DbMailItem.SearchResult cur = (DbMailItem.SearchResult)iter.next();                    try {                        Mailbox mbox = MailboxManager.getInstance().getMailboxById(idx.mMailboxId);                        idx.reIndexItem(mbox, cur.id, cur.type);                    } catch(ServiceException e) {                        mLog.info("Couldn't index "+compareTo.id+" caught ServiceException", e);                    }                }            }        }