/** * Unindex a Document in the Lucene index. * * @param context the dspace context * @param handle the handle of the object to be deleted * @throws IOException if IO error * @throws SQLException if database error */ @Override public void unIndexContent(Context context, String handle) throws IOException, SQLException { unIndexContent(context, handle, false); }
/** * Unindex a Document in the Lucene index. * @param context the dspace context * @param handle the handle of the object to be deleted * @throws IOException * @throws SQLException */ public void unIndexContent(Context context, String handle) throws IOException, SQLException { unIndexContent(context, handle, false); }
/** * unIndex removes an Item, Collection, or Community * * @param context The relevant DSpace Context. * @param dso DSpace Object, can be Community, Item, or Collection * @throws SQLException if database error * @throws IOException if IO error */ @Override public void unIndexContent(Context context, DSpaceObject dso) throws SQLException, IOException { unIndexContent(context, dso, false); }
/** * unIndex removes an Item, Collection, or Community only works if the * DSpaceObject has a handle (uses the handle for its unique ID) * * @param context * @param dso DSpace Object, can be Community, Item, or Collection * @throws SQLException * @throws IOException */ public void unIndexContent(Context context, DSpaceObject dso) throws SQLException, IOException { try { unIndexContent(context, dso.getHandle()); } catch (Exception exception) { log.error(exception.getMessage(), exception); emailException(exception); } }
unIndexContent(context, handle); buildDocument(context, (Item) dso); unIndexContent(context, item); log.info("Removed Item: " + handle + " from Index");
unIndexContent(context, handle); buildDocument(context, (Item) dso); unIndexContent(context, handle); log.info("Removed Item: " + handle + " from Index");
unIndexContent(context, handle); } else { log.debug("Keeping: " + handle);
unIndexContent(context, handle); } else { context.removeCached(o, o.getID());