Package org.grails.plugins.elasticsearch.exception

Examples of org.grails.plugins.elasticsearch.exception.IndexException


    public XContentBuilder toJSON(Object instance) {
        try {
            return jsonDomainFactory.buildJSON(instance);
        } catch (Exception e) {
            throw new IndexException("Failed to marshall domain instance [" + instance + "]", e);
        }
    }
View Full Code Here


                completeListener = new OperationBatch(0, toIndex, toDelete);
                operationBatchList.add(completeListener);
                try {
                    bulkRequestBuilder.execute().addListener(completeListener);
                } catch (Exception e) {
                    throw new IndexException("Failed to index/delete " + bulkRequestBuilder.numberOfActions(), e);
                }
            }
        }

        return completeListener;
View Full Code Here

TOP

Related Classes of org.grails.plugins.elasticsearch.exception.IndexException

Copyright © 2018 www.massapicom. 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.