Package org.compass.core

Examples of org.compass.core.CompassSession.load()


    @Transactional
    public void deleteIndex(Class<? extends Model> type, Object objectID) {
        try{
            CompassSession session = getCompassSession();
            try {
                session.delete(session.load(type, objectID));
            } catch (Exception e) {
                String info=e.getMessage();
                LOG.error("删除索引失败", e);
                LOG.error("Failed to delete index", e , Locale.ENGLISH);
                if(info.indexOf("LockObtainFailedException") != -1){
View Full Code Here


                    String path=info.substring(index+1);
                    File file=new File(path);
                    file.delete();
                    fixIndex();
                    //再次删除
                    session.delete(session.load(type, objectID));
                }
            } finally{
                closeCompassSession(session);
            }
        }catch(Exception e){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.