public void reIndex(long companyId, ContactBook contactBook) throws SearchException {
   try {
     ContactBookIndexer.updateContactBook(companyId, contactBook);
   } catch (UnsupportedEncodingException e) {
     throw new SearchException(e);
   }
 }
  protected void reIndexContactBook(long companyId, int start, int end) throws SystemException {

    List<ContactBook> contactBooks = contactBookPersistence.findByCompanyid(companyId, start, end);
    for (ContactBook contactBook : contactBooks) {
      try {
        ContactBookIndexer.updateContactBook(companyId, contactBook);
      } catch (SearchException e) {
        e.printStackTrace();
      } catch (UnsupportedEncodingException e) {
        e.printStackTrace();
      }
    }
  }